b71df6fa5726da72405e8d56b1fa091f912f042e
[openwrt/staging/xback.git] /
1 From a067943129b4ec6b835e02cfd5fbef01093c1471 Mon Sep 17 00:00:00 2001
2 From: Ondrej Jirman <megi@xff.cz>
3 Date: Sun, 8 Oct 2023 16:40:13 +0200
4 Subject: [PATCH] leds: core: Add more colors from DT bindings to led_colors
5
6 The colors are already part of DT bindings. Make sure the kernel is
7 able to convert them to strings.
8
9 Signed-off-by: Ondrej Jirman <megi@xff.cz>
10 Link: https://lore.kernel.org/r/20231008144014.1180334-1-megi@xff.cz
11 Signed-off-by: Lee Jones <lee@kernel.org>
12 ---
13 drivers/leds/led-core.c | 5 +++++
14 1 file changed, 5 insertions(+)
15
16 --- a/drivers/leds/led-core.c
17 +++ b/drivers/leds/led-core.c
18 @@ -36,6 +36,11 @@ const char * const led_colors[LED_COLOR_
19 [LED_COLOR_ID_IR] = "ir",
20 [LED_COLOR_ID_MULTI] = "multicolor",
21 [LED_COLOR_ID_RGB] = "rgb",
22 + [LED_COLOR_ID_PURPLE] = "purple",
23 + [LED_COLOR_ID_ORANGE] = "orange",
24 + [LED_COLOR_ID_PINK] = "pink",
25 + [LED_COLOR_ID_CYAN] = "cyan",
26 + [LED_COLOR_ID_LIME] = "lime",
27 };
28 EXPORT_SYMBOL_GPL(led_colors);
29