diff options
author | Fabio Baltieri <fabio.baltieri@gmail.com> | 2012-06-07 06:11:05 +0800 |
---|---|---|
committer | Bryan Wu <bryan.wu@canonical.com> | 2012-07-24 07:52:34 +0800 |
commit | 5e417281cde2ef56e9eb1a95d080d6254402e794 (patch) | |
tree | 142bdedb0e099b96276c0e094bf89a10251a7bc4 /drivers/leds/Kconfig | |
parent | 437864828d82b9dee50b5741106fbf5fa12b139a (diff) | |
download | linux-3.10-5e417281cde2ef56e9eb1a95d080d6254402e794.tar.gz linux-3.10-5e417281cde2ef56e9eb1a95d080d6254402e794.tar.bz2 linux-3.10-5e417281cde2ef56e9eb1a95d080d6254402e794.zip |
leds: add oneshot trigger
Add oneshot trigger to blink a led with configurale parameters via
sysfs.
Signed-off-by: Fabio Baltieri <fabio.baltieri@gmail.com>
Cc: Shuah Khan <shuahkhan@gmail.com>
Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
Diffstat (limited to 'drivers/leds/Kconfig')
-rw-r--r-- | drivers/leds/Kconfig | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig index 12b2b55c519..54dd1a396fa 100644 --- a/drivers/leds/Kconfig +++ b/drivers/leds/Kconfig @@ -443,6 +443,20 @@ config LEDS_TRIGGER_TIMER If unsure, say Y. +config LEDS_TRIGGER_ONESHOT + tristate "LED One-shot Trigger" + depends on LEDS_TRIGGERS + help + This allows LEDs to blink in one-shot pulses with parameters + controlled via sysfs. It's useful to notify the user on + sporadic events, when there are no clear begin and end trap points, + or on dense events, where this blinks the LED at constant rate if + rearmed continuously. + + It also shows how to use the led_blink_set_oneshot() function. + + If unsure, say Y. + config LEDS_TRIGGER_IDE_DISK bool "LED IDE Disk Trigger" depends on IDE_GD_ATA |