commit | 1ab4531ad13208c7721bd98300e2aa7a3a5500a3 | [log] [tgz] |
---|---|---|
author | Jean-Jacques Hiblot <jjhiblot@ti.com> | Fri Sep 20 13:58:05 2019 +0200 |
committer | Pavel <pavel@ucw.cz> | Sun Nov 03 17:37:29 2019 +0100 |
tree | a66dd722d0f26450a4dd18cd13a2b1384f380e5b | |
parent | 8b4423d6c5e6515bf6ad7c6c51dfb0a4a95ec606 [diff] |
leds: tlc591xx: simplify driver by using the managed led API Use the managed API of the LED class (devm_led_classdev_register() instead of led_classdev_register()). This allows us to remove the code used to track-and-destroy the LED devices. Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Signed-off-by: Pavel Machek <pavel@ucw.cz>