aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/leds/trigger/Kconfig
diff options
context:
space:
mode:
authorEzequiel Garcia <ezequiel@vanguardiasur.com.ar>2016-03-29 17:35:47 -0300
committerJacek Anaszewski <j.anaszewski@samsung.com>2016-03-30 11:16:39 +0200
commit916fe619951f41b55d4f2b9f26d64ad981bc0dfa (patch)
treef2adcab47354d000d4851274caf136ad98851830 /drivers/leds/trigger/Kconfig
parentLinux 4.6-rc1 (diff)
downloadlinux-dev-916fe619951f41b55d4f2b9f26d64ad981bc0dfa.tar.xz
linux-dev-916fe619951f41b55d4f2b9f26d64ad981bc0dfa.zip
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