All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] leds: core: Add more colors from DT bindings to led_colors
@ 2023-10-08 14:40 Ondřej Jirman
  2023-10-12  9:34 ` Lee Jones
  0 siblings, 1 reply; 2+ messages in thread
From: Ondřej Jirman @ 2023-10-08 14:40 UTC (permalink / raw)
  To: linux-kernel
  Cc: Ondrej Jirman, Pavel Machek, Lee Jones, open list:LED SUBSYSTEM

From: Ondrej Jirman <megi@xff.cz>

The colors are already part of DT bindings. Make sure the kernel is
able to convert them to strings.

Signed-off-by: Ondrej Jirman <megi@xff.cz>
---
 drivers/leds/led-core.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/leds/led-core.c b/drivers/leds/led-core.c
index 214ed81eb0e9..2230239283d0 100644
--- a/drivers/leds/led-core.c
+++ b/drivers/leds/led-core.c
@@ -36,6 +36,11 @@ const char * const led_colors[LED_COLOR_ID_MAX] = {
 	[LED_COLOR_ID_IR] = "ir",
 	[LED_COLOR_ID_MULTI] = "multicolor",
 	[LED_COLOR_ID_RGB] = "rgb",
+	[LED_COLOR_ID_PURPLE] = "purple",
+	[LED_COLOR_ID_ORANGE] = "orange",
+	[LED_COLOR_ID_PINK] = "pink",
+	[LED_COLOR_ID_CYAN] = "cyan",
+	[LED_COLOR_ID_LIME] = "lime",
 };
 EXPORT_SYMBOL_GPL(led_colors);
 
-- 
2.42.0


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

* Re: [PATCH] leds: core: Add more colors from DT bindings to led_colors
  2023-10-08 14:40 [PATCH] leds: core: Add more colors from DT bindings to led_colors Ondřej Jirman
@ 2023-10-12  9:34 ` Lee Jones
  0 siblings, 0 replies; 2+ messages in thread
From: Lee Jones @ 2023-10-12  9:34 UTC (permalink / raw)
  To: linux-kernel, Ondřej Jirman; +Cc: Pavel Machek, Lee Jones, linux-leds

On Sun, 08 Oct 2023 16:40:13 +0200, Ondřej Jirman wrote:
> The colors are already part of DT bindings. Make sure the kernel is
> able to convert them to strings.
> 
> 

Applied, thanks!

[1/1] leds: core: Add more colors from DT bindings to led_colors
      commit: e2d508c7abbf0f8ff0d6467de07abf08c8fb5041

--
Lee Jones [李琼斯]


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

end of thread, other threads:[~2023-10-12  9:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-08 14:40 [PATCH] leds: core: Add more colors from DT bindings to led_colors Ondřej Jirman
2023-10-12  9:34 ` Lee Jones

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.