leds: Add of_led_get() and led_put()
commit699a8c7c4bd376aee4808e6272188319e900c8af
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 3 Oct 2019 08:28:09 +0000 (3 10:28 +0200)
committerPavel <pavel@ucw.cz>
Sun, 5 Jan 2020 23:20:06 +0000 (6 00:20 +0100)
treeb35f95250a065850ed2a35cf22ceb0209fc4c164
parent31e065c4e8bac71be29a9d4d65ea62f5c9ec17b3
leds: Add of_led_get() and led_put()

This patch adds basic support for a kernel driver to get a LED device.
This will be used by the led-backlight driver.

Only OF version is implemented for now, and the behavior is similar to
PWM's of_pwm_get() and pwm_put().

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/led-class.c
include/linux/leds.h