Lines Matching refs:ktd2801
35 struct ktd2801_backlight *ktd2801 = bl_get_data(bd); in ktd2801_update_status() local
39 expresswire_power_off(&ktd2801->props); in ktd2801_update_status()
40 ktd2801->was_on = false; in ktd2801_update_status()
44 if (!ktd2801->was_on) { in ktd2801_update_status()
45 expresswire_enable(&ktd2801->props); in ktd2801_update_status()
46 ktd2801->was_on = true; in ktd2801_update_status()
49 expresswire_write_u8(&ktd2801->props, brightness); in ktd2801_update_status()
62 struct ktd2801_backlight *ktd2801; in ktd2801_backlight_probe() local
66 ktd2801 = devm_kzalloc(dev, sizeof(*ktd2801), GFP_KERNEL); in ktd2801_backlight_probe()
67 if (!ktd2801) in ktd2801_backlight_probe()
69 ktd2801->was_on = true; in ktd2801_backlight_probe()
70 ktd2801->props.timing = ktd2801_timing; in ktd2801_backlight_probe()
88 ktd2801->props.ctrl_gpio = devm_gpiod_get(dev, "ctrl", GPIOD_OUT_HIGH); in ktd2801_backlight_probe()
89 if (IS_ERR(ktd2801->props.ctrl_gpio)) in ktd2801_backlight_probe()
90 return dev_err_probe(dev, PTR_ERR(ktd2801->props.ctrl_gpio), in ktd2801_backlight_probe()
92 gpiod_set_consumer_name(ktd2801->props.ctrl_gpio, dev_name(dev)); in ktd2801_backlight_probe()
94 bd = devm_backlight_device_register(dev, dev_name(dev), dev, ktd2801, in ktd2801_backlight_probe()
103 ktd2801->bd = bd; in ktd2801_backlight_probe()