linux-next/Documentation/leds
Joseph Strauss 56e8c56c9a leds: Add multicolor support to BlinkM LED driver
Add multicolor support to the BlinkM driver, making it easier to control
from userspace. The BlinkM LED is a programmable RGB LED. The driver
currently supports only the regular LED sysfs class, resulting in the
creation of three distinct classes, one for red, green, and blue. The
user then has to input three values into the three seperate brightness
files within those classes. The multicolor LED framework makes the
device easier to control with the multi_intensity file: the user can
input three values at once to form a color, while still controlling the
lightness with the brightness file.

The main struct blinkm_led has changed slightly. The struct led_classdev
for the regular sysfs classes remain. The blinkm_probe function checks
CONFIG_LEDS_BLINKM_MULTICOLOR to decide whether to load the seperate
sysfs classes or the single multicolor one, but never both. The
blinkm_set_mc_brightness() function had to be added to calculate the
three color components and then set the fields of the blinkm_data
structure accordingly.

Signed-off-by: Joseph Strauss <jstrauss@mailbox.org>
Link: https://lore.kernel.org/r/20240710184844.108006-1-jstrauss@mailbox.org
Signed-off-by: Lee Jones <lee@kernel.org>
2024-08-01 13:40:02 +01:00
..
index.rst leds: cht-wcove: Add support for breathing mode use hw_pattern sysfs API 2023-05-25 12:16:15 +01:00
leds-blinkm.rst leds: Add multicolor support to BlinkM LED driver 2024-08-01 13:40:02 +01:00
leds-cht-wcove.rst leds: cht-wcove: Add support for breathing mode use hw_pattern sysfs API 2023-05-25 12:16:15 +01:00
leds-class-flash.rst docs: leds: convert to ReST 2019-06-28 20:57:31 +02:00
leds-class-multicolor.rst leds: multicolor: Introduce a multicolor class definition 2020-07-22 14:41:29 +02:00
leds-class.rst Documentation: leds: leds-class: Document new Hardware driven LEDs APIs 2023-05-31 09:42:08 +01:00
leds-el15203000.rst docs: ABI: sysfs-class-led-trigger-pattern: remove hw_pattern duplication 2020-10-30 13:15:03 +01:00
leds-lm3556.rst Documentation: Add leading slash to some paths 2021-03-31 13:49:19 -06:00
leds-lp55xx.rst docs: leds: convert to ReST 2019-06-28 20:57:31 +02:00
leds-lp3944.rst docs: leds: convert to ReST 2019-06-28 20:57:31 +02:00
leds-lp5521.rst docs: leds: convert to ReST 2019-06-28 20:57:31 +02:00
leds-lp5523.rst docs: leds: convert to ReST 2019-06-28 20:57:31 +02:00
leds-lp5562.rst docs: leds: convert to ReST 2019-06-28 20:57:31 +02:00
leds-mlxcpld.rst docs: leds: convert to ReST 2019-06-28 20:57:31 +02:00
leds-mt6370-rgb.rst Documentation: leds: MT6370: Use bullet lists for timing variables 2023-03-29 15:38:53 +01:00
leds-qcom-lpg.rst Documentation: leds: Correct spelling 2023-01-30 08:03:46 +00:00
leds-sc27xx.rst docs: ABI: sysfs-class-led-trigger-pattern: remove hw_pattern duplication 2020-10-30 13:15:03 +01:00
ledtrig-oneshot.rst docs: leds: ledtrig-oneshot: Fix spelling mistake 2023-04-20 14:57:48 +01:00
ledtrig-transient.rst leds: we don't want people to use LED subsystem for vibrations 2020-08-17 18:04:15 +02:00
ledtrig-usbport.rst docs: leds: convert to ReST 2019-06-28 20:57:31 +02:00
uleds.rst docs: leds: convert to ReST 2019-06-28 20:57:31 +02:00
well-known-leds.txt leds: Add multicolor support to BlinkM LED driver 2024-08-01 13:40:02 +01:00