diff options
author | Thomas Weißschuh <linux@weissschuh.net> | 2024-06-13 16:48:38 +0200 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2024-06-21 12:41:39 +0200 |
commit | 493179e692dbb70cac1e54828d0e04bda386f13d (patch) | |
tree | a3e4038b5d3b462e37e3b4aef08c1e6ecedf99fa | |
parent | leds: multicolor: Use led_get_color_name() function (diff) | |
download | linux-493179e692dbb70cac1e54828d0e04bda386f13d.tar.xz linux-493179e692dbb70cac1e54828d0e04bda386f13d.zip |
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>
-rw-r--r-- | drivers/leds/led-core.c | 3 | ||||
-rw-r--r-- | drivers/leds/leds.h | 1 |
2 files changed, 1 insertions, 3 deletions
diff --git a/drivers/leds/led-core.c b/drivers/leds/led-core.c index e0dd2284e84a..f2cea4e094f6 100644 --- a/drivers/leds/led-core.c +++ b/drivers/leds/led-core.c @@ -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) { diff --git a/drivers/leds/leds.h b/drivers/leds/leds.h index 1138e2ab82e5..d7999e7372a4 100644 --- a/drivers/leds/leds.h +++ b/drivers/leds/leds.h @@ -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 */ |