[PATCH v30 05/16] leds: multicolor: Introduce a multicolor class definition

Marek Behún marek.behun at nic.cz
Wed Jul 15 09:21:22 EDT 2020


On Mon, 13 Jul 2020 10:45:33 -0500
Dan Murphy <dmurphy at ti.com> wrote:

> Introduce a multicolor class that groups colored LEDs
> within a LED node.
> 
> The multi color 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.
> 
> Acked-by: Jacek Anaszewski <jacek.anaszewski at gmail.com>
> Signed-off-by: Dan Murphy <dmurphy at ti.com>
> ---
>  .../ABI/testing/sysfs-class-led-multicolor    |  35 +++
>  Documentation/leds/index.rst                  |   1 +
>  Documentation/leds/leds-class-multicolor.rst  |  86 ++++++++
>  drivers/leds/Kconfig                          |  10 +
>  drivers/leds/Makefile                         |   1 +
>  drivers/leds/led-class-multicolor.c           | 204
> ++++++++++++++++++ include/linux/led-class-multicolor.h          |
> 121 +++++++++++ 7 files changed, 458 insertions(+)
>  create mode 100644
> Documentation/ABI/testing/sysfs-class-led-multicolor create mode
> 100644 Documentation/leds/leds-class-multicolor.rst create mode
> 100644 drivers/leds/led-class-multicolor.c create mode 100644
> include/linux/led-class-multicolor.h

Reviewed-by: Marek Behún <marek.behun at nic.cz>



More information about the linux-arm-kernel mailing list