]> git.apps.os.sepia.ceph.com Git - ceph-client.git/commit
leds: multicolor: Use led_get_color_name() function
authorThomas Weißschuh <linux@weissschuh.net>
Thu, 13 Jun 2024 14:48:37 +0000 (16:48 +0200)
committerLee Jones <lee@kernel.org>
Fri, 21 Jun 2024 10:41:36 +0000 (11:41 +0100)
commit9cb6de2d2c5ca1a7478ee584954bb997fd9f7834
tree1f4b60ca1fe86abca5a08f235e47b5c353724a82
parent5f2e950755c76c6fc20fc4ebd8355671fbbd7ac0
leds: multicolor: Use led_get_color_name() function

led_get_color_name() is a safer alternative to led_colors.

led-class-multicolor.c is the only external user of led_colors and its
removal allows unexporting the array.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://lore.kernel.org/r/20240613-cros_ec-led-v3-2-500b50f41e0f@weissschuh.net
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/leds/led-class-multicolor.c