leds: trigger: Introduce a kernel panic LED trigger
authorEzequiel Garcia <ezequiel@vanguardiasur.com.ar>
Tue, 29 Mar 2016 20:35:47 +0000 (17:35 -0300)
committerJacek Anaszewski <j.anaszewski@samsung.com>
Wed, 30 Mar 2016 09:16:39 +0000 (11:16 +0200)
commit916fe619951f41b55d4f2b9f26d64ad981bc0dfa
treef2adcab47354d000d4851274caf136ad98851830
parentf55532a0c0b8bb6148f4e07853b876ef73bc69ca
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>
drivers/leds/trigger/Kconfig
drivers/leds/trigger/Makefile
drivers/leds/trigger/ledtrig-panic.c [new file with mode: 0644]