* [PATCH 0/2] leds: core: add support for color LED's
@ 2016-02-07 0:37 Heiner Kallweit
0 siblings, 0 replies; 2+ messages in thread
From: Heiner Kallweit @ 2016-02-07 0:37 UTC (permalink / raw)
To: Jacek Anaszewski; +Cc: linux-leds
This patchset adds support for color LED's. In addition to RGB LED's
also LED's with native HSV are implicitely supported (although I know
no such devices).
Basic idea is to use enum led_brightness also for the hue and saturation
color component.
Flag LED_BRIGHTNESS_SET_COLOR BIT(24) allows to specify that hue / saturation
should be overridden even if the provided values are zero.
Some examples for writing values to /sys/class/leds/<xx>/brightness:
(now also values in hex notation can be provided)
255 -> set full brightness and keep existing color if set
0 -> switch LED off but keep existing color so that it can be restored if the
LED is switched on again later
0x1000000 -> switch LED off and set also hue and saturation to 0
0x00ffff -> set full brightness, full saturation and set hue to 0 (red)
Heiner Kallweit (2):
leds: core: add generic support for color LED's
leds: core: add support for RGB LED's
drivers/leds/led-class.c | 10 ++++--
drivers/leds/led-core.c | 89 +++++++++++++++++++++++++++++++++++++++++++-----
include/linux/leds.h | 5 +++
3 files changed, 94 insertions(+), 10 deletions(-)
--
2.7.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 0/2] leds: core: add support for color LED's
@ 2016-02-07 10:05 Heiner Kallweit
0 siblings, 0 replies; 2+ messages in thread
From: Heiner Kallweit @ 2016-02-07 10:05 UTC (permalink / raw)
To: Jacek Anaszewski; +Cc: linux-leds
This patchset adds support for color LED's. In addition to RGB LED's
also LED's with native HSV are implicitely supported (although I know
no such devices).
Basic idea is to use enum led_brightness also for the hue and saturation
color component.
Heiner Kallweit (2):
leds: core: add generic support for color LED's
leds: core: add support for RGB LED's
drivers/leds/led-class.c | 10 ++++--
drivers/leds/led-core.c | 89 +++++++++++++++++++++++++++++++++++++++++++-----
include/linux/leds.h | 5 +++
3 files changed, 94 insertions(+), 10 deletions(-)
--
2.7.0
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-02-07 10:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-07 10:05 [PATCH 0/2] leds: core: add support for color LED's Heiner Kallweit
-- strict thread matches above, loose matches on Subject: below --
2016-02-07 0:37 Heiner Kallweit
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).