linux-leds.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] leds: add orange color
@ 2020-07-23 12:57 Marek Behún
  2020-07-23 13:40 ` Dan Murphy
  2020-07-23 19:39 ` Pavel Machek
  0 siblings, 2 replies; 16+ messages in thread
From: Marek Behún @ 2020-07-23 12:57 UTC (permalink / raw)
  To: linux-leds; +Cc: Pavel Machek, jacek.anaszewski, Dan Murphy, Marek Behún

Many network devices have LEDs with green and orange color, instead of
green and yellow.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
---
 drivers/leds/led-core.c           | 1 +
 include/dt-bindings/leds/common.h | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/leds/led-core.c b/drivers/leds/led-core.c
index 846248a0693d..6503d0d66fc6 100644
--- a/drivers/leds/led-core.c
+++ b/drivers/leds/led-core.c
@@ -35,6 +35,7 @@ const char * const led_colors[LED_COLOR_ID_MAX] = {
 	[LED_COLOR_ID_YELLOW] = "yellow",
 	[LED_COLOR_ID_IR] = "ir",
 	[LED_COLOR_ID_MULTI] = "multicolor",
+	[LED_COLOR_ID_ORANGE] = "orange",
 };
 EXPORT_SYMBOL_GPL(led_colors);
 
diff --git a/include/dt-bindings/leds/common.h b/include/dt-bindings/leds/common.h
index a463ce6a8794..28b00ecc4645 100644
--- a/include/dt-bindings/leds/common.h
+++ b/include/dt-bindings/leds/common.h
@@ -31,7 +31,8 @@
 #define LED_COLOR_ID_YELLOW	6
 #define LED_COLOR_ID_IR		7
 #define LED_COLOR_ID_MULTI	8
-#define LED_COLOR_ID_MAX	9
+#define LED_COLOR_ID_ORANGE	9
+#define LED_COLOR_ID_MAX	10
 
 /* Standard LED functions */
 /* Keyboard LEDs, usually it would be input4::capslock etc. */
-- 
2.26.2


^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2020-07-23 21:38 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-23 12:57 [PATCH] leds: add orange color Marek Behún
2020-07-23 13:40 ` Dan Murphy
2020-07-23 13:47   ` Marek Behún
2020-07-23 14:23     ` Dan Murphy
2020-07-23 19:39 ` Pavel Machek
2020-07-23 20:09   ` Jacek Anaszewski
2020-07-23 20:11     ` Jacek Anaszewski
2020-07-23 20:16       ` Pavel Machek
2020-07-23 20:31         ` Jacek Anaszewski
2020-07-23 20:39           ` Pavel Machek
2020-07-23 20:54             ` Dan Murphy
2020-07-23 20:57             ` Jacek Anaszewski
2020-07-23 21:04               ` Pavel Machek
2020-07-23 21:17                 ` Marek Behun
2020-07-23 21:24                   ` Marek Behun
2020-07-23 21:38                   ` Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).