acer-wmi: set the touchpad toggle key code to KEY_TOUCHPAD_TOGGLE
authorLee, Chun-Yi <joeyli.kernel@gmail.com>
Tue, 1 Mar 2011 17:07:11 +0000 (01:07 +0800)
committerMatthew Garrett <mjg@redhat.com>
Mon, 28 Mar 2011 10:07:26 +0000 (06:07 -0400)
Set the touchpad toggle key code from F22 to KEY_TOUCHPAD_TOGGLE,
and userspace should use udev's key re-mapping facilities while X
is unable to process keycodes above 255 to adjust to the keycode.

Cc: Matthew Garrett <mjg@redhat.com>
Cc: Dmitry Torokhov <dtor@mail.ru>
Cc: Corentin Chary <corentincj@iksaif.net>
Signed-off-by: Lee, Chun-Yi <jlee@novell.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/acer-wmi.c

index c9784705f6ac41ca63666b6d330cfb651c080b0b..a8acf35d74751cedf75f5ebd33904b345d1397a7 100644 (file)
@@ -108,7 +108,7 @@ static const struct key_entry acer_wmi_keymap[] = {
        {KE_KEY, 0x23, {KEY_PROG3} },    /* P_Key */
        {KE_KEY, 0x24, {KEY_PROG4} },    /* Social networking_Key */
        {KE_KEY, 0x64, {KEY_SWITCHVIDEOMODE} }, /* Display Switch */
-       {KE_KEY, 0x82, {KEY_F22} },      /* Touch Pad On/Off */
+       {KE_KEY, 0x82, {KEY_TOUCHPAD_TOGGLE} }, /* Touch Pad On/Off */
        {KE_END, 0}
 };