]> git.baikalelectronics.ru Git - kernel.git/commit
leds: add RGB color option, as that is different from multicolor.
authorPavel Machek <pavel@ucw.cz>
Mon, 3 Aug 2020 11:20:06 +0000 (13:20 +0200)
committerPavel Machek <pavel@ucw.cz>
Mon, 3 Aug 2020 11:26:15 +0000 (13:26 +0200)
commit073393cbee296bf5b99e72ebd74bc550d60e1c4b
tree3e735e1bb63dffc209ebdb0933e665f0db2f2093
parentf7d2d1024ee4862abf17d8bf5a8557e061c52e42
leds: add RGB color option, as that is different from multicolor.

Multicolor is a bit too abstract. Yes, we can have
Green-Magenta-Ultraviolet LED, but so far all the LEDs we support are
RGB, and not even RGB-White or RGB-Yellow variants emerged.

Multicolor is not a good fit for RGB LED. It does not really know
about LED color.  In particular, there's no way to make LED "white".

Userspace is interested in knowing "this LED can produce arbitrary
color", which not all multicolor LEDs can.

Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/led-core.c
drivers/leds/leds-lp55xx-common.c
include/dt-bindings/leds/common.h