Re: [PATCHv2 1/3] leds: Add of_led_get() and led_put()
From: Tomi Valkeinen <hidden>
Date: 2015-09-09 12:16:26
Also in:
linux-leds
Attachments
- signature.asc [application/pgp-signature] 819 bytes
From: Tomi Valkeinen <hidden>
Date: 2015-09-09 12:16:26
Also in:
linux-leds
On 08/09/15 17:04, Jacek Anaszewski wrote:
quoted
quoted
+#endif /* __LINUX_LEDS_OF_H_INCLUDED */diff --git a/include/linux/leds.h b/include/linux/leds.h index b122eeafb5dc..0fce71a06d68 100644 --- a/include/linux/leds.h +++ b/include/linux/leds.h@@ -113,6 +113,8 @@ extern void devm_led_classdev_unregister(structdevice *parent, extern void led_classdev_suspend(struct led_classdev *led_cdev); extern void led_classdev_resume(struct led_classdev *led_cdev); +extern void led_put(struct led_classdev *led_cdev); +This also needs no-op version.
Ok, but... I think other already existing functions need no-ops also. If there's a driver that uses of_led_get and led_put, it's sure to use some other led_* functions also. So if we want that driver to be compilable when LED support is disabled in the kernel, we need to provide no-ops for all those functions. Probably: led_set_brightness led_blink_set_oneshot led_blink_set Tomi