summaryrefslogtreecommitdiffstats
path: root/drivers/leds/trigger/Makefile
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2024-05-31 15:59:10 +0200
committerLee Jones <lee@kernel.org>2024-06-21 12:57:17 +0200
commit6f963a20eed72b9abb54754cc935ce546b66b451 (patch)
tree880f589a29171ee03287e48c50ca82c5fe4ab95c /drivers/leds/trigger/Makefile
parentleds: ss4200: Convert PCIBIOS_* return codes to errnos (diff)
downloadlinux-6f963a20eed72b9abb54754cc935ce546b66b451.tar.xz
linux-6f963a20eed72b9abb54754cc935ce546b66b451.zip
leds: trigger: Add new LED Input events trigger
Add a new trigger which turns LEDs on when there is input (/dev/input/event*) activity and turns them back off again after there has been no activity for 5 seconds. This is primarily intended to control LED devices which are a backlight for capacitive touch-buttons, such as e.g. the menu / home / back buttons found on the bottom bezel of many somewhat older smartphones and tablets. This can also be used to turn on the keyboard backlight LED on input events and turn the keyboard backlight off again when idle. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Link: https://lore.kernel.org/r/20240531135910.168965-2-hdegoede@redhat.com Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'drivers/leds/trigger/Makefile')
-rw-r--r--drivers/leds/trigger/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/leds/trigger/Makefile b/drivers/leds/trigger/Makefile
index 242f6c4e3453..3b3628889f68 100644
--- a/drivers/leds/trigger/Makefile
+++ b/drivers/leds/trigger/Makefile
@@ -15,3 +15,4 @@ obj-$(CONFIG_LEDS_TRIGGER_PANIC) += ledtrig-panic.o
obj-$(CONFIG_LEDS_TRIGGER_NETDEV) += ledtrig-netdev.o
obj-$(CONFIG_LEDS_TRIGGER_PATTERN) += ledtrig-pattern.o
obj-$(CONFIG_LEDS_TRIGGER_TTY) += ledtrig-tty.o
+obj-$(CONFIG_LEDS_TRIGGER_INPUT_EVENTS) += ledtrig-input-events.o