]> git.karo-electronics.de Git - karo-tx-linux.git/commit
input: route kbd LEDs through the generic LEDs layer
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Tue, 5 Nov 2013 05:54:57 +0000 (16:54 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 5 Nov 2013 05:54:57 +0000 (16:54 +1100)
commit49275c0ad3c62b219ca7e6f46f5b9f3d65adfcbf
treec2abafaf17da03638507e8fc2b9ff1e117d1d015
parentab6e3ced2c616421c0641ea4c963fb1efa07214b
input: route kbd LEDs through the generic LEDs layer

This permits to reassign keyboard LEDs to something else than keyboard
"leds" state, by adding keyboard led and modifier triggers connected to a
series of VT input LEDs, themselves connected to VT input triggers, which
per-input device LEDs use by default.  Userland can thus easily change the
LED behavior of (a priori) all input devices, or of particular input
devices.

This also permits to fix #7063 from userland by using a modifier to
implement proper CapsLock behavior and have the keyboard caps lock led
show that modifier state.

[ebroder@mokafive.com: Rebased to 3.2-rc1 or so, cleaned up some includes, and fixed some constants]
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Evan Broder <evan@ebroder.net>
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Tested-by: Pavel Machek <pavel@ucw.cz>
Acked-by: Peter Korsgaard <jacmet@sunsite.dk>
Cc: Pavel Machek <pavel@ucw.cz>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Bryan Wu <cooloney@gmail.com>
Cc: Arnaud Patard <arnaud.patard@rtp-net.org>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Matt Sealey <matt@genesi-usa.com>
Cc: Rob Clark <robdclark@gmail.com>
Cc: Niels de Vos <devos@fedoraproject.org>
Cc: Steev Klimaszewski <steev@genesi-usa.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Documentation/leds/leds-class.txt
drivers/input/Kconfig
drivers/input/Makefile
drivers/input/input.c
drivers/input/leds.c [new file with mode: 0644]
drivers/leds/Kconfig
drivers/tty/Kconfig
drivers/tty/vt/keyboard.c
include/linux/input.h