diff options
author | Ezequiel Garcia <ezequiel@vanguardiasur.com.ar> | 2016-03-29 22:35:47 +0200 |
---|---|---|
committer | Jacek Anaszewski <j.anaszewski@samsung.com> | 2016-03-30 11:16:39 +0200 |
commit | 916fe619951f41b55d4f2b9f26d64ad981bc0dfa (patch) | |
tree | f2adcab47354d000d4851274caf136ad98851830 /drivers/leds/trigger/Kconfig | |
parent | Linux 4.6-rc1 (diff) | |
download | linux-916fe619951f41b55d4f2b9f26d64ad981bc0dfa.tar.xz linux-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/Kconfig | 7 |
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 |