leds: Add multicolor ID to the color ID list
authorDan Murphy <dmurphy@ti.com>
Mon, 13 Jul 2020 15:45:32 +0000 (10:45 -0500)
committerPavel Machek <pavel@ucw.cz>
Wed, 15 Jul 2020 17:33:16 +0000 (19:33 +0200)
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>
Reviewed-by: Marek BehĂșn <marek.behun@nic.cz>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/led-core.c

index f1f718d..846248a 100644 (file)
@@ -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);