dell-wmi: Improve unknown hotkey handling
authorAndy Lutomirski <luto@kernel.org>
Tue, 1 Dec 2015 01:02:01 +0000 (17:02 -0800)
committerDarren Hart <dvhart@linux.intel.com>
Tue, 19 Jan 2016 23:49:35 +0000 (15:49 -0800)
commitcbc61f114af5fb078d84dc8864152f4db1712bc5
treeaee938b8ddfbe71787c8fed387a879ad7ea064a9
parentc1e1655bb892c6800af82c2d88c8063fce7b5c98
dell-wmi: Improve unknown hotkey handling

If DMI lists a hotkey that we don't recognize, log and ignore it
instead of trying to map it to keycode 0.  I haven't seen this happen,
but it will help maintain the key map in the future and it will help
avoid sending bogus events.

This also improves the message that we log when we get an unknown key
event.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Reviewed-by: Pali Rohár <pali.rohar@gmail.com>
[dvhart: remove BUILD_BUG_ON per mutual agreement on list]
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
drivers/platform/x86/dell-wmi.c