Re: [PATCH v9 3/5] leds: Add managed API to get a LED from a device driver

2019-10-13 Thread Pavel Machek
Hi! > If the LED is acquired by a consumer device with devm_led_get(), it is > automatically released when the device is detached. > > Signed-off-by: Jean-Jacques Hiblot > Acked-by: Pavel Machek > --- > drivers/leds/led-class.c | 49 > include/linux/led

[PATCH v9 3/5] leds: Add managed API to get a LED from a device driver

2019-10-07 Thread Jean-Jacques Hiblot
If the LED is acquired by a consumer device with devm_led_get(), it is automatically released when the device is detached. Signed-off-by: Jean-Jacques Hiblot Acked-by: Pavel Machek --- drivers/leds/led-class.c | 49 include/linux/leds.h | 2 ++ 2 fi