提交 853a78a7 编写于 作者: J Jacek Anaszewski

dt-bindings: leds: Add LED_COLOR_ID definitions

Add common LED color identifiers.
Signed-off-by: NJacek Anaszewski <jacek.anaszewski@gmail.com>
Cc: Baolin Wang <baolin.wang@linaro.org>
Cc: Daniel Mack <daniel@zonque.org>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Oleh Kravchenko <oleg@kaa.org.ua>
Cc: Sakari Ailus <sakari.ailus@linux.intel.com>
Cc: Simon Shields <simon@lineageos.org>
Reviewed-by: NRob Herring <robh@kernel.org>
Acked-by: NPavel Machek <pavel@ucw.cz>
Reviewed-by: NDan Murphy <dmurphy@ti.com>
上级 b2b998c0
...@@ -19,4 +19,15 @@ ...@@ -19,4 +19,15 @@
#define LEDS_BOOST_ADAPTIVE 1 #define LEDS_BOOST_ADAPTIVE 1
#define LEDS_BOOST_FIXED 2 #define LEDS_BOOST_FIXED 2
/* Standard LED colors */
#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_IR 7
#define LED_COLOR_ID_MAX 8
#endif /* __DT_BINDINGS_LEDS_H */ #endif /* __DT_BINDINGS_LEDS_H */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册