projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43962eb
)
leds: core: Add more colors from DT bindings to led_colors
author
Ondrej Jirman
<megi@xff.cz>
Sun, 8 Oct 2023 14:40:13 +0000
(16:40 +0200)
committer
Lee Jones
<lee@kernel.org>
Wed, 1 Nov 2023 11:29:06 +0000
(11:29 +0000)
The colors are already part of DT bindings. Make sure the kernel is
able to convert them to strings.
Signed-off-by: Ondrej Jirman <megi@xff.cz>
Link:
https://lore.kernel.org/r/20231008144014.1180334-1-megi@xff.cz
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/leds/led-core.c
patch
|
blob
|
history
diff --git
a/drivers/leds/led-core.c
b/drivers/leds/led-core.c
index 04f9ea675f2cef6a7653aef2573fd56083640736..742595d923ee36ea7d0f05eab117bf1986977bf8 100644
(file)
--- a/
drivers/leds/led-core.c
+++ b/
drivers/leds/led-core.c
@@
-36,6
+36,11
@@
const char * const led_colors[LED_COLOR_ID_MAX] = {
[LED_COLOR_ID_IR] = "ir",
[LED_COLOR_ID_MULTI] = "multicolor",
[LED_COLOR_ID_RGB] = "rgb",
+ [LED_COLOR_ID_PURPLE] = "purple",
+ [LED_COLOR_ID_ORANGE] = "orange",
+ [LED_COLOR_ID_PINK] = "pink",
+ [LED_COLOR_ID_CYAN] = "cyan",
+ [LED_COLOR_ID_LIME] = "lime",
};
EXPORT_SYMBOL_GPL(led_colors);