leds: triggers: Allow to switch the trigger to "panic" on a kernel panic
authorEzequiel Garcia <ezequiel@vanguardiasur.com.ar>
Thu, 28 Apr 2016 22:03:38 +0000 (19:03 -0300)
committerJacek Anaszewski <j.anaszewski@samsung.com>
Fri, 6 May 2016 08:22:09 +0000 (10:22 +0200)
commitba93cdce5bbe6929fd7486f87c985598ded8f451
treee9bedbf17709dceafabbcd753a3d6cc97c36d6fb
parentf15c65afddbe16a832cfe3f311588c7e34a4efbf
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>
drivers/leds/led-triggers.c
drivers/leds/leds.h
drivers/leds/trigger/Kconfig
drivers/leds/trigger/ledtrig-panic.c
include/linux/leds.h