leds: class: Store the color index in struct led_classdev
authorJean-Jacques Hiblot <jjhiblot@traphandler.com>
Fri, 28 Jul 2023 15:37:29 +0000 (17:37 +0200)
committerLee Jones <lee@kernel.org>
Thu, 17 Aug 2023 08:00:34 +0000 (09:00 +0100)
commitc7d80059b086c4986cd994a1973ec7a5d75f8eea
treeb93389acfcb0c97f22b2493f98db93a69bef0c0a
parentafb48153220d35f330d0d979792920a31f7d9a81
leds: class: Store the color index in struct led_classdev

Store the color of the LED so that it is not lost after the LED's
name has been composed. This color information can then be exposed to
the user space or used by the LED consumer.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@traphandler.com>
Link: https://lore.kernel.org/r/20230728153731.3742339-3-jjhiblot@traphandler.com
Signed-off-by: Lee Jones <lee@kernel.org>
Documentation/ABI/testing/sysfs-class-led
drivers/leds/led-class.c
include/linux/leds.h