Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

leds: core: Unexport led_colors[] array

There are no external users left, make the array static.

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

authored by

Thomas Weißschuh and committed by
Lee Jones
493179e6 9cb6de2d

+1 -3
+1 -2
drivers/leds/led-core.c
··· 25 25 LIST_HEAD(leds_list); 26 26 EXPORT_SYMBOL_GPL(leds_list); 27 27 28 - const char * const led_colors[LED_COLOR_ID_MAX] = { 28 + static const char * const led_colors[LED_COLOR_ID_MAX] = { 29 29 [LED_COLOR_ID_WHITE] = "white", 30 30 [LED_COLOR_ID_RED] = "red", 31 31 [LED_COLOR_ID_GREEN] = "green", ··· 42 42 [LED_COLOR_ID_CYAN] = "cyan", 43 43 [LED_COLOR_ID_LIME] = "lime", 44 44 }; 45 - EXPORT_SYMBOL_GPL(led_colors); 46 45 47 46 static int __led_set_brightness(struct led_classdev *led_cdev, unsigned int value) 48 47 {
-1
drivers/leds/leds.h
··· 30 30 31 31 extern struct rw_semaphore leds_list_lock; 32 32 extern struct list_head leds_list; 33 - extern const char * const led_colors[LED_COLOR_ID_MAX]; 34 33 35 34 #endif /* __LEDS_H_INCLUDED */