From: Pau Espin Pedrol Date: Fri, 10 Feb 2017 17:48:37 +0000 (+0100) Subject: platform/x86: eeepc-laptop: Skip unknown key messages 0x50 0x51 X-Git-Tag: v4.14-rc1~997^2~81 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=999ddbdf3c8354077660efbac9ab91c12187d6d2;p=platform%2Fkernel%2Flinux-rpi.git platform/x86: eeepc-laptop: Skip unknown key messages 0x50 0x51 Otherwise those are printed several times when (un)plugging the AC connector. Signed-off-by: Pau Espin Pedrol Acked-by: Dmitry Torokhov Signed-off-by: Darren Hart (VMware) --- diff --git a/drivers/platform/x86/eeepc-laptop.c b/drivers/platform/x86/eeepc-laptop.c index 6f11c51..2426399 100644 --- a/drivers/platform/x86/eeepc-laptop.c +++ b/drivers/platform/x86/eeepc-laptop.c @@ -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 }, };