Files
erofs-linux/drivers/leds
Hans de Goede ef381e1793 leds: led-class: Add Device Tree support to led_get()
Add 'name' argument to of_led_get() such that it can lookup LEDs in
devicetree by either name or index.

And use this modified function to add devicetree support to the generic
(non devicetree specific) [devm_]led_get() function.

This uses the standard devicetree pattern of adding a -names string array
to map names to the indexes for an array of resources.

Reviewed-by: Andy Shevchenko <[email protected]>
Reviewed-by: Linus Walleij <[email protected]>
Signed-off-by: Hans de Goede <[email protected]>
Signed-off-by: Aleksandrs Vinarskis <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Lee Jones <[email protected]>
2025-09-16 16:49:28 +01:00
..
…
2024-09-27 08:18:43 -07:00