lkml.org 
[lkml]   [2019]   [Apr]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[RFC PATCH 4/5] dt-bindings: leds: Add LED_COLOR_ID and COLOR_NAME definitions
Date
This patch is being added to demonstrate reuse of Jacek's patch
https://lore.kernel.org/patchwork/patch/1056726/

I have added color name definitions to the above patch.
I do not claim authorship and the intent of this patch to strictly
for demonstration.

Signed-off-by: Dan Murphy <dmurphy@ti.com>
---
include/dt-bindings/leds/common.h | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)

diff --git a/include/dt-bindings/leds/common.h b/include/dt-bindings/leds/common.h
index e171d0a6beb2..7e1279d761e4 100644
--- a/include/dt-bindings/leds/common.h
+++ b/include/dt-bindings/leds/common.h
@@ -19,4 +19,23 @@
#define LEDS_BOOST_ADAPTIVE 1
#define LEDS_BOOST_FIXED 2

+#define LED_COLOR_ID_WHITE 0
+#define LED_COLOR_ID_RED 1
+#define LED_COLOR_ID_GREEN 2
+#define LED_COLOR_ID_BLUE 3
+#define LED_COLOR_ID_AMBER 4
+#define LED_COLOR_ID_VIOLET 5
+#define LED_COLOR_ID_YELLOW 6
+#define LED_COLOR_ID_MAX LED_COLOR_ID_YELLOW
+
+#define LED_COLOR_NAME_WHITE "white"
+#define LED_COLOR_NAME_RED "red"
+#define LED_COLOR_NAME_GREEN "green"
+#define LED_COLOR_NAME_BLUE "blue"
+#define LED_COLOR_NAME_AMBER "amber"
+#define LED_COLOR_NAME_VIOLET "violet"
+#define LED_COLOR_NAME_YELLOW "yellow"
+
+#define LED_COLOR_NAME_MAX_SZ 6
+
#endif /* __DT_BINDINGS_LEDS_H */
--
2.19.0
\
 
 \ /
  Last update: 2019-04-01 19:45    [W:0.136 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site