mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 23:27:06 +00:00
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 <megi@xff.cz> Link: https://lore.kernel.org/r/20231008144014.1180334-1-megi@xff.cz Signed-off-by: Lee Jones <lee@kernel.org>
This commit is contained in:
parent
43962eb5de
commit
a067943129
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue