]> git.dujemihanovic.xyz Git - u-boot.git/commit
led: introduce led_bind_generic()
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>
Fri, 17 Nov 2023 11:38:08 +0000 (12:38 +0100)
committerTom Rini <trini@konsulko.com>
Wed, 13 Dec 2023 16:35:13 +0000 (11:35 -0500)
commit3bf0515a07f7e82f2cdbf435bfd7fcd66651852d
tree9a39b70be62893e715bd6d5aeb7ce8fda18eedc9
parent067e4ce35b944314742cb46b3c82cb9b801c50ca
led: introduce led_bind_generic()

All existing drivers in drivers/led/ contain a .bind method that does
exactly the same thing, with just the actual driver name
differing. Create a helper so all those individual methods can be
changed to one-liners.

Reviewed-by: Marek Vasut <marex@denx.de>
Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
drivers/led/led-uclass.c
include/led.h