summaryrefslogtreecommitdiffstats
path: root/drivers/leds/leds.h
diff options
context:
space:
mode:
authorEzequiel Garcia <ezequiel@vanguardiasur.com.ar>2016-04-28 19:03:38 -0300
committerJacek Anaszewski <j.anaszewski@samsung.com>2016-05-06 10:22:09 +0200
commitba93cdce5bbe6929fd7486f87c985598ded8f451 (patch)
treee9bedbf17709dceafabbcd753a3d6cc97c36d6fb /drivers/leds/leds.h
parentf15c65afddbe16a832cfe3f311588c7e34a4efbf (diff)
downloadtalos-op-linux-ba93cdce5bbe6929fd7486f87c985598ded8f451.tar.gz
talos-op-linux-ba93cdce5bbe6929fd7486f87c985598ded8f451.zip
leds: triggers: Allow to switch the trigger to "panic" on a kernel panic
This commit adds a new led_cdev flag LED_PANIC_INDICATOR, which allows to mark a specific LED to be switched to the "panic" trigger, on a kernel panic. This is useful to allow the user to assign a regular trigger to a given LED, and still blink that LED on a kernel panic. Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar> Reviewed-by: Matthias Brugger <mbrugger@suse.com> Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Diffstat (limited to 'drivers/leds/leds.h')
-rw-r--r--drivers/leds/leds.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/leds/leds.h b/drivers/leds/leds.h
index db3f20da7221..7d38e6b9a740 100644
--- a/drivers/leds/leds.h
+++ b/drivers/leds/leds.h
@@ -30,5 +30,6 @@ void led_set_brightness_nosleep(struct led_classdev *led_cdev,
extern struct rw_semaphore leds_list_lock;
extern struct list_head leds_list;
+extern struct list_head trigger_list;
#endif /* __LEDS_H_INCLUDED */
OpenPOWER on IntegriCloud