]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5156f56a4da14daecd553ff29e996634363c8d65
treeaee938b8ddfbe71787c8fed387a879ad7ea064a9
parent67cc333f6350a3aa465f47d01829e0a8e964df2f
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