aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/leds/trigger/Kconfig
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2021-01-13 18:30:18 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-01-15 10:22:26 +0100
commitfd4a641ac88fbbaf8b90e00823397597a287cfcd (patch)
tree94894d04476fe2db405ccb58a4ae0a15a521c918 /drivers/leds/trigger/Kconfig
parenttty: vcc: Drop impossible to hit WARN_ON (diff)
downloadlinux-dev-fd4a641ac88fbbaf8b90e00823397597a287cfcd.tar.xz
linux-dev-fd4a641ac88fbbaf8b90e00823397597a287cfcd.zip
leds: trigger: implement a tty trigger
Usage is as follows: myled=ledname tty=ttyS0 echo tty > /sys/class/leds/$myled/trigger echo $tty > /sys/class/leds/$myled/ttyname . When this new trigger is active it periodically checks the tty's statistics and when it changed since the last check the led is flashed once. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Link: https://lore.kernel.org/r/20210113173018.bq2fkea2o3yp6rf6@pengutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/leds/trigger/Kconfig')
-rw-r--r--drivers/leds/trigger/Kconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/leds/trigger/Kconfig b/drivers/leds/trigger/Kconfig
index ce9429ca6dde..b77a01bd27f4 100644
--- a/drivers/leds/trigger/Kconfig
+++ b/drivers/leds/trigger/Kconfig
@@ -144,4 +144,13 @@ config LEDS_TRIGGER_AUDIO
the audio mute and mic-mute changes.
If unsure, say N
+config LEDS_TRIGGER_TTY
+ tristate "LED Trigger for TTY devices"
+ depends on TTY
+ help
+ This allows LEDs to be controlled by activity on ttys which includes
+ serial devices like /dev/ttyS0.
+
+ When build as a module this driver will be called ledtrig-tty.
+
endif # LEDS_TRIGGERS