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>
This commit is contained in:
Jean-Jacques Hiblot 2023-07-28 17:37:29 +02:00 • committed by Lee Jones
commit c7d80059b0
3 changed files with 31 additions and 0 deletions