Skip to contentSkip to conversation

leds: core: Add more colors from DT bindings to led_colors

PATCH Applied Ondřej Jirman 2 participants 2 messages Oct 8, 2023 – Oct 12, 2023 LED

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 leds: core: Add more colors from DT bindings to led_colors

From: Ondrej Jirman <[email protected]>

The colors are already part of DT bindings. Make sure the kernel is able to convert them to strings.

---
 drivers/leds/led-core.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/leds/led-core.c +5 -0
index 214ed81eb0e9..2230239283d0 100644
@@ -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);
 
Signature · 1 line
2.42.0
maintainer Applied
#1 lore raw
Quoted 4 lines · Ondřej Jirman

The colors are already part of DT bindings. Make sure the kernel is able to convert them to strings.

Applied, thanks!

[1/1] leds: core: Add more colors from DT bindings to led_colors

      commit: e2d508c7abbf0f8ff0d6467de07abf08c8fb5041

--
Lee Jones [李琼斯]