diff options
author | Jean-Jacques Hiblot <jjhiblot@traphandler.com> | 2023-07-28 17:37:31 +0200 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2023-08-17 09:01:00 +0100 |
commit | 37d0849ed3927f7c4be6f5ee030730f9aa7439c0 (patch) | |
tree | df4c3f3e529d65d804f7b9c7c6db186747da74ff /drivers/platform | |
parent | 099c52d9448c1ca832b4695e982221a521282b94 (diff) |
leds: rgb: Add a multicolor LED driver to group monochromatic LEDs
Grouping multiple monochrome LEDs into a multicolor LED device has a few
benefits over handling the group in user-space:
- The state of the LEDs relative to each other is consistent. In other
words, if 2 threads competes to set the LED to green and red, the
end-result cannot be black or yellow.
- The multicolor LED as a whole can be driven through the sysfs LED
interface.
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@traphandler.com>
Reviewed-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20230728153731.3742339-5-jjhiblot@traphandler.com
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'drivers/platform')
0 files changed, 0 insertions, 0 deletions