ACPI: thinkpad-acpi: add input device support to hotkey subdriver
commit0a4834795c45889e5b95dcce620d0a247f7ced93
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Thu, 14 Jun 2007 22:54:14 +0000 (14 19:54 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Fri, 28 Sep 2007 01:25:18 +0000 (27 22:25 -0300)
treec23137adec7f50e6276a69f201d5998bd24c6f07
parent6f1ec3f322c75da2318bfaea587e83c6347ecf16
ACPI: thinkpad-acpi: add input device support to hotkey subdriver

Add input device support to the hotkey subdriver.

Hot keys that have a valid keycode mapping are reported through the input
layer if the input device is open.  Otherwise, they will be reported as
ACPI events, as they were before.

Scan codes are reported (using EV_MSC MSC_SCAN events) along with EV_KEY
KEY_UNKNOWN events.

For backwards compatibility purposes, hot keys that used to be reported
through ACPI events are not mapped to anything meaningful by default.
Userspace is supposed to remap them if it wants to use the input device for
hot key reporting.

This patch is based on a patch by Richard Hughes <hughsient@gmail.com>.

Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: Richard Hughes <hughsient@gmail.com>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Documentation/thinkpad-acpi.txt
drivers/misc/thinkpad_acpi.c