Lines Matching refs:led_dev
49 struct led_classdev led_dev; member
86 static int tm2_touchkey_led_brightness_set(struct led_classdev *led_dev, in tm2_touchkey_led_brightness_set() argument
90 container_of(led_dev, struct tm2_touchkey_data, led_dev); in tm2_touchkey_led_brightness_set()
176 if (touchkey->led_dev.brightness == LED_OFF) in tm2_touchkey_irq_handler()
177 tm2_touchkey_led_brightness_set(&touchkey->led_dev, in tm2_touchkey_irq_handler()
282 touchkey->led_dev.name = TM2_TOUCHKEY_DEV_NAME; in tm2_touchkey_probe()
283 touchkey->led_dev.brightness = LED_ON; in tm2_touchkey_probe()
284 touchkey->led_dev.max_brightness = LED_ON; in tm2_touchkey_probe()
285 touchkey->led_dev.brightness_set_blocking = in tm2_touchkey_probe()
288 error = devm_led_classdev_register(&client->dev, &touchkey->led_dev); in tm2_touchkey_probe()
296 tm2_touchkey_led_brightness_set(&touchkey->led_dev, LED_ON); in tm2_touchkey_probe()