acer-wmi: support for P key on TM8372
authorMerlin Schumacher <merlin.schumacher@gmail.com>
Mon, 23 Jan 2012 20:35:35 +0000 (04:35 +0800)
committerMatthew Garrett <mjg@redhat.com>
Tue, 20 Mar 2012 16:02:24 +0000 (12:02 -0400)
BugLink: http://launchpad.net/bugs/865807
There is no entry for P key on TM8372, so when P key is pressed, only
"acer_wmi: Unknown key number - 0x29" in dmesg.

Signed-off-by: Merlin Schumacher <merlin.schumacher@gmail.com>
Signed-off-by: Ike Panhc <ike.pan@canonical.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/acer-wmi.c

index 7203e060d64dd6c63e3b71faceed63e0b6194304..286dd9caefcbd762a2259a3f1c96c2d027f3661d 100644 (file)
@@ -105,6 +105,7 @@ static const struct key_entry acer_wmi_keymap[] = {
        {KE_KEY, 0x22, {KEY_PROG2} },    /* Arcade */
        {KE_KEY, 0x23, {KEY_PROG3} },    /* P_Key */
        {KE_KEY, 0x24, {KEY_PROG4} },    /* Social networking_Key */
+       {KE_KEY, 0x29, {KEY_PROG3} },    /* P_Key for TM8372 */
        {KE_IGNORE, 0x41, {KEY_MUTE} },
        {KE_IGNORE, 0x42, {KEY_PREVIOUSSONG} },
        {KE_IGNORE, 0x43, {KEY_NEXTSONG} },