diff options
author | Hans de Goede <hansg@kernel.org> | 2025-09-10 14:01:10 +0200 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2025-09-16 16:49:28 +0100 |
commit | ef381e17930e9c5268a53f57187c87a85676d0f7 (patch) | |
tree | a3a2a0a0c7f5f6b792b747f00ff7a838c146b7cb /rust/kernel/irq/request.rs | |
parent | 22420da3662a69d8894ee624494213a5888a1e87 (diff) |
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 <andy.shevchenko@gmail.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Hans de Goede <hansg@kernel.org>
Signed-off-by: Aleksandrs Vinarskis <alex@vinarskis.com>
Link: https://lore.kernel.org/r/20250910-leds-v5-3-bb90a0f897d5@vinarskis.com
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'rust/kernel/irq/request.rs')
0 files changed, 0 insertions, 0 deletions