]> 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)
commit540193db86b4a5267cf41ced5203afe7c6fd333f
treeaee938b8ddfbe71787c8fed387a879ad7ea064a9
parent0e580ff3ba1591c484e509a0f4bdb96a1f5aa76b
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