]> git.baikalelectronics.ru Git - kernel.git/commit
thinkpad_acpi: Always report scancodes for hotkeys
authorSeth Forshee <seth.forshee@canonical.com>
Fri, 14 Jan 2011 21:54:39 +0000 (15:54 -0600)
committerMatthew Garrett <mjg@redhat.com>
Mon, 21 Feb 2011 22:06:20 +0000 (17:06 -0500)
commit2cdb6251983fd8c1c79689f4ae8a132d4cee0ae8
treea71e777556d1fd899f7ab2cb29830684f99e1589
parent66a9f730d111768a82cc6bebb32419a20cdabd59
thinkpad_acpi: Always report scancodes for hotkeys

Some thinkpad hotkeys report key codes like KEY_FN_F8 when something
like KEY_VOLUMEDOWN is desired. Always provide the scan codes in
addition to the key codes to assist with debugging these issues. Also
send the scan code before the key code to match what other drivers do,
as some userspace utilities expect this ordering.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/thinkpad_acpi.c