platform/x86: fujitsu-laptop: use a sparse keymap for hotkey event generation
authorMichał Kępień <kernel@kempniu.pl>
Mon, 20 Mar 2017 09:32:22 +0000 (10:32 +0100)
committerDarren Hart (VMware) <dvhart@infradead.org>
Thu, 13 Apr 2017 17:14:30 +0000 (10:14 -0700)
commit527483a8e1cf6c78b4e15545d57013d9a958482a
tree85cdbf60e3144fa0a8566aa708040e02f7974117
parentf66735f8f8fb8d18e41288a74e73dc5e354331c9
platform/x86: fujitsu-laptop: use a sparse keymap for hotkey event generation

Simplify hotkey event generation by using a sparse keymap.  As sparse
keymap operates on scancodes instead of keycodes, adjust variable names
and debug messages accordingly.

This patch only handles the default keymap for clarity.

Signed-off-by: Michał Kępień <kernel@kempniu.pl>
Reviewed-by: Jonathan Woithe <jwoithe@just42.net>
[dvhart: correct flag passed to call_fext_func in acpi_fujitsu_laptop_notify]
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
drivers/platform/x86/fujitsu-laptop.c