mediatek: Add support for Xiaomi Redmi Router AX6S
[openwrt/staging/chunkeey.git] / target / linux / generic / backport-5.4 / 900-v5.9-0002-leds-Add-multicolor-ID-to-the-color-ID-list.patch
1 From 10d3e0d815879129e916cd83e1034438e06efdaa Mon Sep 17 00:00:00 2001
2 From: Dan Murphy <dmurphy@ti.com>
3 Date: Mon, 13 Jul 2020 10:45:32 -0500
4 Subject: [PATCH] leds: Add multicolor ID to the color ID list
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 Add a new color ID that is declared as MULTICOLOR as with the
10 multicolor framework declaring a definitive color is not accurate
11 as the node can contain multiple colors.
12
13 Signed-off-by: Dan Murphy <dmurphy@ti.com>
14 Reviewed-by: Marek BehĂșn <marek.behun@nic.cz>
15 Signed-off-by: Pavel Machek <pavel@ucw.cz>
16 ---
17 drivers/leds/led-core.c | 1 +
18 1 file changed, 1 insertion(+)
19
20 --- a/drivers/leds/led-core.c
21 +++ b/drivers/leds/led-core.c
22 @@ -34,6 +34,7 @@ const char * const led_colors[LED_COLOR_
23 [LED_COLOR_ID_VIOLET] = "violet",
24 [LED_COLOR_ID_YELLOW] = "yellow",
25 [LED_COLOR_ID_IR] = "ir",
26 + [LED_COLOR_ID_MULTI] = "multicolor",
27 };
28 EXPORT_SYMBOL_GPL(led_colors);
29