platform/x86: eeepc-laptop: Skip unknown key messages 0x50 0x51
authorPau Espin Pedrol <pespin.shar@gmail.com>
Fri, 10 Feb 2017 17:48:37 +0000 (18:48 +0100)
committerDarren Hart (VMware) <dvhart@infradead.org>
Thu, 23 Mar 2017 16:01:35 +0000 (09:01 -0700)
Otherwise those are printed several times when (un)plugging the AC
connector.

Signed-off-by: Pau Espin Pedrol <pespin.shar@gmail.com>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
drivers/platform/x86/eeepc-laptop.c

index 6f11c51b7e601dc45f340ef8ba890507c836d390..2426399e1e04ac04e925c77c9a8ef51f3e9defed 100644 (file)
@@ -150,6 +150,8 @@ static const struct key_entry eeepc_keymap[] = {
        { KE_KEY, 0x32, { KEY_SWITCHVIDEOMODE } },
        { KE_KEY, 0x37, { KEY_F13 } }, /* Disable Touchpad */
        { KE_KEY, 0x38, { KEY_F14 } },
+       { KE_IGNORE, 0x50, { KEY_RESERVED } }, /* AC plugged */
+       { KE_IGNORE, 0x51, { KEY_RESERVED } }, /* AC unplugged */
        { KE_END, 0 },
 };