leds: multicolor: Introduce a multicolor class definition
authorDan Murphy <dmurphy@ti.com>
Thu, 16 Jul 2020 18:19:56 +0000 (13:19 -0500)
committerPavel Machek <pavel@ucw.cz>
Wed, 22 Jul 2020 12:41:29 +0000 (14:41 +0200)
commit55d5d3b46b08a4dc0b05343d24640744e7430ed7
treef201e4248416a591ea17c23cc2110e75efcab153
parent10d3e0d815879129e916cd83e1034438e06efdaa
leds: multicolor: Introduce a multicolor class definition

Introduce a multicolor class that groups colored LEDs
within a LED node.

The multicolor class groups monochrome LEDs and allows controlling two
aspects of the final combined color: hue and lightness. The former is
controlled via the intensity file and the latter is controlled
via brightness file.

Signed-off-by: Dan Murphy <dmurphy@ti.com>
Acked-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
[squashed leds: multicolor: Fix camel case in documentation in]
Documentation/ABI/testing/sysfs-class-led-multicolor [new file with mode: 0644]
Documentation/leds/index.rst
Documentation/leds/leds-class-multicolor.rst [new file with mode: 0644]
drivers/leds/Kconfig
drivers/leds/Makefile
drivers/leds/led-class-multicolor.c [new file with mode: 0644]
include/linux/led-class-multicolor.h [new file with mode: 0644]