diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2024-01-31 15:30:53 +0100 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2024-03-07 08:48:04 +0000 |
commit | e838a5a110b60b2dad8c2e5d41e91ca402a5d9d2 (patch) | |
tree | 42e0257d4b2a4dc3c1fc9e3ac5ecdf4131f04453 /drivers/leds | |
parent | 09e3f3244e8480d53873bb86a3808edaa3f4e314 (diff) | |
download | linux-e838a5a110b60b2dad8c2e5d41e91ca402a5d9d2.tar.gz linux-e838a5a110b60b2dad8c2e5d41e91ca402a5d9d2.tar.bz2 linux-e838a5a110b60b2dad8c2e5d41e91ca402a5d9d2.zip |
leds: trigger: Stop exporting trigger_list
Commit 682e98564ffb ("leds: trigger: panic: Simplify
led_trigger_set_panic") removed the last external user of variable
trigger_list. So stop exporting it. If in future a need should arise
again to access this variable, I think we better add some accessor
instead of exporting the variable directly.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://lore.kernel.org/r/ca185fb1-3a66-46b9-920e-bfecbe39c6bf@gmail.com
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'drivers/leds')
-rw-r--r-- | drivers/leds/led-triggers.c | 2 | ||||
-rw-r--r-- | drivers/leds/leds.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/drivers/leds/led-triggers.c b/drivers/leds/led-triggers.c index 71cb0aee528c..371000770d75 100644 --- a/drivers/leds/led-triggers.c +++ b/drivers/leds/led-triggers.c @@ -23,7 +23,7 @@ * Nests outside led_cdev->trigger_lock */ static DECLARE_RWSEM(triggers_list_lock); -LIST_HEAD(trigger_list); +static LIST_HEAD(trigger_list); /* Used by LED Class */ diff --git a/drivers/leds/leds.h b/drivers/leds/leds.h index 345062ccabda..1138e2ab82e5 100644 --- a/drivers/leds/leds.h +++ b/drivers/leds/leds.h @@ -30,7 +30,6 @@ 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 struct list_head trigger_list; extern const char * const led_colors[LED_COLOR_ID_MAX]; #endif /* __LEDS_H_INCLUDED */ |