diff mbox series

[v8,4/9] dt-bindings: leds: Add multicolor ID to the color ID list

Message ID 20190920174139.30079-5-dmurphy@ti.com
State Superseded
Headers show
Series [v8,1/9] leds: multicolor: Add sysfs interface definition | expand

Commit Message

Dan Murphy Sept. 20, 2019, 5:41 p.m. UTC
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>

---
 include/dt-bindings/leds/common.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

-- 
2.22.0.214.g8dca754b1e

Comments

Jacek Anaszewski Sept. 21, 2019, 12:58 p.m. UTC | #1
Dan,

On 9/20/19 7:41 PM, Dan Murphy wrote:
> 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>

> ---

>  include/dt-bindings/leds/common.h | 3 ++-

>  1 file changed, 2 insertions(+), 1 deletion(-)

> 

> diff --git a/include/dt-bindings/leds/common.h b/include/dt-bindings/leds/common.h

> index 9e1256a7c1bf..7006d15f71e8 100644

> --- a/include/dt-bindings/leds/common.h

> +++ b/include/dt-bindings/leds/common.h

> @@ -29,7 +29,8 @@

>  #define LED_COLOR_ID_VIOLET	5

>  #define LED_COLOR_ID_YELLOW	6

>  #define LED_COLOR_ID_IR		7

> -#define LED_COLOR_ID_MAX	8

> +#define LED_COLOR_ID_MULTI	8

> +#define LED_COLOR_ID_MAX	9

>  

>  /* Standard LED functions */

>  #define LED_FUNCTION_ACTIVITY "activity"

> 


ack.

-- 
Best regards,
Jacek Anaszewski
diff mbox series

Patch

diff --git a/include/dt-bindings/leds/common.h b/include/dt-bindings/leds/common.h
index 9e1256a7c1bf..7006d15f71e8 100644
--- a/include/dt-bindings/leds/common.h
+++ b/include/dt-bindings/leds/common.h
@@ -29,7 +29,8 @@ 
 #define LED_COLOR_ID_VIOLET	5
 #define LED_COLOR_ID_YELLOW	6
 #define LED_COLOR_ID_IR		7
-#define LED_COLOR_ID_MAX	8
+#define LED_COLOR_ID_MULTI	8
+#define LED_COLOR_ID_MAX	9
 
 /* Standard LED functions */
 #define LED_FUNCTION_ACTIVITY "activity"