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 <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>
2025-09-16 16:49:28 +01:00
..
2025-08-07 10:07:06 +02:00
2025-08-18 09:49:12 +01:00
2025-05-14 09:25:08 +01:00
2025-03-21 09:21:56 +00:00
2025-07-18 14:26:32 +01:00
2025-05-14 09:25:02 +01:00
2025-08-18 09:48:13 +01:00
2025-05-14 09:25:09 +01:00
2025-05-14 09:24:45 +01:00
2025-09-16 16:49:28 +01:00
2025-06-08 09:07:37 +02:00
2025-05-14 09:25:07 +01:00
2025-04-15 17:57:54 +01:00
2024-10-15 09:58:10 +01:00
2024-10-15 09:58:10 +01:00
2024-06-21 11:57:11 +01:00
2024-04-12 09:47:15 +01:00
2025-02-26 11:17:39 +01:00
2024-08-22 14:23:03 +01:00
2024-10-31 16:22:23 +00:00
2024-08-22 14:23:05 +01:00
2024-08-01 13:40:07 +01:00
2024-06-21 11:57:11 +01:00
2024-08-01 13:40:02 +01:00
2025-01-09 10:57:16 +00:00
2024-10-15 09:58:10 +01:00
2024-10-09 15:16:59 +01:00
2025-04-15 17:57:57 +01:00
2024-10-15 09:58:10 +01:00
2024-10-15 09:58:10 +01:00
2024-10-09 15:17:06 +01:00
2024-12-02 11:34:44 -08:00
2024-10-10 14:42:33 +01:00
2024-11-22 16:25:20 -08:00
2025-08-18 09:48:11 +01:00
2025-09-11 16:18:13 +01:00
2024-06-21 11:57:11 +01:00
2024-10-09 15:17:20 +01:00
2024-10-15 09:58:10 +01:00
2024-06-21 11:57:11 +01:00
2023-11-01 11:29:02 +00:00
2024-10-09 15:17:27 +01:00
2025-06-27 13:58:31 +01:00
2025-09-02 13:26:25 +01:00
2024-08-22 14:48:24 +01:00
2024-06-21 11:57:11 +01:00
2024-06-21 11:57:11 +01:00
2024-07-11 12:46:25 +01:00
2024-07-11 12:46:25 +01:00
2024-10-15 12:58:41 +01:00
2024-07-12 08:32:37 +01:00
2024-06-26 17:08:31 +01:00
2025-07-11 15:11:19 -07:00
2025-01-09 10:43:34 +00:00
2024-11-06 08:13:14 +00:00
2024-10-09 15:18:29 +01:00
2025-08-18 09:49:04 +01:00
2024-10-15 09:58:10 +01:00
2025-03-21 09:48:11 +00:00
2024-04-11 17:35:18 +01:00
2024-10-15 09:58:10 +01:00
2024-12-17 15:01:11 +00:00
2025-03-21 09:49:37 +00:00
2024-10-09 15:18:37 +01:00
2025-08-07 10:07:06 +02:00
2024-10-09 15:18:44 +01:00
2025-05-14 09:25:04 +01:00
2025-08-07 10:07:06 +02:00
2024-10-15 09:58:10 +01:00
2024-11-12 12:14:00 +00:00
2025-09-02 08:54:46 +01:00
2024-10-15 09:58:10 +01:00
2024-10-15 09:58:10 +01:00
2024-10-15 09:58:10 +01:00
2024-06-26 16:56:07 +01:00
2024-11-12 14:39:26 +00:00
2025-03-29 14:42:59 -07:00
2024-10-15 09:58:10 +01:00
2024-10-15 09:58:10 +01:00
2023-12-13 11:28:26 +00:00
2025-08-07 10:07:06 +02:00
2024-06-26 16:56:09 +01:00
2025-05-14 09:24:57 +01:00
2024-12-17 13:17:55 +00:00
2024-10-15 09:58:10 +01:00
2024-10-15 09:58:10 +01:00
2025-01-09 11:09:09 +00:00
2025-05-14 09:25:02 +01:00
2024-09-27 08:18:43 -07:00