lkml.org 
[lkml]   [2023]   [Nov]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] leds: Expand led_colors[] array
On Mon, 30 Oct 2023, Jisheng Zhang wrote:

> commit 472d7b9e8141 ("dt-bindings: leds: Expand LED_COLOR_ID
> definitions") expands LED_COLOR_ID definitions for dt-binding. However,
> it doesn't expand the led_colors[] array in leds core, so if any of
> the newly expaned LED_COLOR_ID definitions is used, the sysfs will
> emit null in the led's name color part. Let's expand the led_colors[]
> array too.
>
> Before the commit:
> /sys/class/leds # ls
> (null):indicator-0
>
> After the commit:
> /sys/class/leds # ls
> orange:indicator-0
>
> Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
> ---
> drivers/leds/led-core.c | 5 +++++
> 1 file changed, 5 insertions(+)

This already exists as:

a067943129b4e leds: core: Add more colors from DT bindings to led_colors

--
Lee Jones [李琼斯]

\
 
 \ /
  Last update: 2023-11-23 11:56    [W:0.047 / U:0.484 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site