Skip to content

Commit a067943

Browse files
Ondrej Jirmanlag-linaro
authored andcommitted
leds: core: Add more colors from DT bindings to led_colors
The colors are already part of DT bindings. Make sure the kernel is able to convert them to strings. Signed-off-by: Ondrej Jirman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent 43962eb commit a067943

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/leds/led-core.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ const char * const led_colors[LED_COLOR_ID_MAX] = {
3636
[LED_COLOR_ID_IR] = "ir",
3737
[LED_COLOR_ID_MULTI] = "multicolor",
3838
[LED_COLOR_ID_RGB] = "rgb",
39+
[LED_COLOR_ID_PURPLE] = "purple",
40+
[LED_COLOR_ID_ORANGE] = "orange",
41+
[LED_COLOR_ID_PINK] = "pink",
42+
[LED_COLOR_ID_CYAN] = "cyan",
43+
[LED_COLOR_ID_LIME] = "lime",
3944
};
4045
EXPORT_SYMBOL_GPL(led_colors);
4146

0 commit comments

Comments
 (0)