summaryrefslogtreecommitdiff
path: root/drivers/leds/trigger/Kconfig
diff options
context:
space:
mode:
authorEzequiel Garcia <ezequiel@vanguardiasur.com.ar>2016-03-29 23:35:47 +0300
committerJacek Anaszewski <j.anaszewski@samsung.com>2016-03-30 12:16:39 +0300
commit916fe619951f41b55d4f2b9f26d64ad981bc0dfa (patch)
treef2adcab47354d000d4851274caf136ad98851830 /drivers/leds/trigger/Kconfig
parentf55532a0c0b8bb6148f4e07853b876ef73bc69ca (diff)
downloadlinux-916fe619951f41b55d4f2b9f26d64ad981bc0dfa.tar.xz
leds: trigger: Introduce a kernel panic LED trigger
This commit introduces a new LED trigger which allows to configure a LED to blink on a kernel panic (through panic_blink). Notice that currently the Openmoko FreeRunner (GTA02) mach code sets panic_blink to blink a hard-coded LED. The new trigger is meant to introduce a generic mechanism to achieve this. Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar> Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Diffstat (limited to 'drivers/leds/trigger/Kconfig')
-rw-r--r--drivers/leds/trigger/Kconfig7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/leds/trigger/Kconfig b/drivers/leds/trigger/Kconfig
index 5bda6a9b56bb..554f5bfbeced 100644
--- a/drivers/leds/trigger/Kconfig
+++ b/drivers/leds/trigger/Kconfig
@@ -108,4 +108,11 @@ config LEDS_TRIGGER_CAMERA
This enables direct flash/torch on/off by the driver, kernel space.
If unsure, say Y.
+config LEDS_TRIGGER_PANIC
+ bool "LED Panic Trigger"
+ depends on LEDS_TRIGGERS
+ help
+ This allows LEDs to be configured to blink on a kernel panic.
+ If unsure, say Y.
+
endif # LEDS_TRIGGERS