leds: tlc591xx: simplify driver by using the managed led API
authorJean-Jacques Hiblot <jjhiblot@ti.com>
Fri, 20 Sep 2019 11:58:05 +0000 (13:58 +0200)
committerPavel <pavel@ucw.cz>
Sun, 3 Nov 2019 16:37:29 +0000 (17:37 +0100)
commit1ab4531ad13208c7721bd98300e2aa7a3a5500a3
treea66dd722d0f26450a4dd18cd13a2b1384f380e5b
parent8b4423d6c5e6515bf6ad7c6c51dfb0a4a95ec606
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>
drivers/leds/leds-tlc591xx.c