diff mbox series

[v4,5/9] leds: Add multicolor ID to the color ID list

Message ID 20190725182818.29556-6-dmurphy@ti.com
State Superseded
Headers show
Series [v4,1/9] leds: multicolor: Add sysfs interface definition | expand

Commit Message

Dan Murphy July 25, 2019, 6:28 p.m. UTC
Add a new color ID that is declared as MULTICOLOR as with the
multicolor framework declaring a definitive color is not accurate
as the node can contain multiple colors.

Signed-off-by: Dan Murphy <dmurphy@ti.com>

---
 drivers/leds/led-core.c | 1 +
 1 file changed, 1 insertion(+)

-- 
2.22.0.214.g8dca754b1e
diff mbox series

Patch

diff --git a/drivers/leds/led-core.c b/drivers/leds/led-core.c
index f0c1c403f678..52422b1ee1f3 100644
--- a/drivers/leds/led-core.c
+++ b/drivers/leds/led-core.c
@@ -34,6 +34,7 @@  const char * const led_colors[LED_COLOR_ID_MAX] = {
 	[LED_COLOR_ID_VIOLET] = "violet",
 	[LED_COLOR_ID_YELLOW] = "yellow",
 	[LED_COLOR_ID_IR] = "ir",
+	[LED_COLOR_ID_MULTI] = "multicolor",
 };
 EXPORT_SYMBOL_GPL(led_colors);