]> git.dujemihanovic.xyz Git - u-boot.git/commit
led-uclass: honour ->label field populated by driver's own .bind
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>
Fri, 17 Nov 2023 11:38:06 +0000 (12:38 +0100)
committerTom Rini <trini@konsulko.com>
Wed, 13 Dec 2023 16:34:49 +0000 (11:34 -0500)
commit5bf61f918df2140bec16ef574afe8b1490738df3
treeebe43c5175bc006ec241b9ceb9f7835fcf21d399
parentae7ec8b0be41b59ef323f7531c0fe6745e8fef45
led-uclass: honour ->label field populated by driver's own .bind

If the driver's own .bind method has populated uc_plat->label, don't
override that. This is necessary for an upcoming driver for ti,lp5562,
where the DT binding unfortunately says to use "chan-name" and not
"label".

Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: Marek Vasut <marex@denx.de>
Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
drivers/led/led-uclass.c