]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
leds: core: Unexport led_colors[] array
authorThomas Weißschuh <linux@weissschuh.net>
Thu, 13 Jun 2024 14:48:38 +0000 (16:48 +0200)
committerLee Jones <lee@kernel.org>
Fri, 21 Jun 2024 10:41:39 +0000 (11:41 +0100)
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>
drivers/leds/led-core.c
drivers/leds/leds.h

index e0dd2284e84a2d14136f68c7cd43f4a38959ae32..f2cea4e094f69fc445e39a7148bee3d953e1a755 100644 (file)
@@ -25,7 +25,7 @@ EXPORT_SYMBOL_GPL(leds_list_lock);
 LIST_HEAD(leds_list);
 EXPORT_SYMBOL_GPL(leds_list);
 
-const char * const led_colors[LED_COLOR_ID_MAX] = {
+static const char * const led_colors[LED_COLOR_ID_MAX] = {
        [LED_COLOR_ID_WHITE] = "white",
        [LED_COLOR_ID_RED] = "red",
        [LED_COLOR_ID_GREEN] = "green",
@@ -42,7 +42,6 @@ const char * const led_colors[LED_COLOR_ID_MAX] = {
        [LED_COLOR_ID_CYAN] = "cyan",
        [LED_COLOR_ID_LIME] = "lime",
 };
-EXPORT_SYMBOL_GPL(led_colors);
 
 static int __led_set_brightness(struct led_classdev *led_cdev, unsigned int value)
 {
index 1138e2ab82e55a3d9bdf73ecb820b83f1b0c4ee9..d7999e7372a49f4c5f2bd0c489581e2467d53803 100644 (file)
@@ -30,6 +30,5 @@ ssize_t led_trigger_write(struct file *filp, struct kobject *kobj,
 
 extern struct rw_semaphore leds_list_lock;
 extern struct list_head leds_list;
-extern const char * const led_colors[LED_COLOR_ID_MAX];
 
 #endif /* __LEDS_H_INCLUDED */