OSDN Git Service

platform/x86: ideapad-laptop: Squelch ACPI event 1
authorHao Wei Tee <angelsl@angelsl.xyz>
Mon, 22 May 2017 10:38:55 +0000 (18:38 +0800)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 23 May 2017 16:36:25 +0000 (19:36 +0300)
commit3cfd956b02ac7a9fb5f2414171f834871931fbd0
tree7197ca2df4cf44b4e9014e85ae043c5bde2dca4a
parent46936fd65c107ed935e21bfa6fc00b4f510b1714
platform/x86: ideapad-laptop: Squelch ACPI event 1

Don't simply throw this to userspace via the sparse_keymap (which does not
have a mapping for scancode 1), as this causes KEY_UNKNOWN to be emitted,
which is a nuisance and of no use at all (it is not the right way to expose
this ACPI event to userspace, anyway, and the original intention of the commit
which added this (cfee5d63767b2e7997c1f36420d008abbe61565c) was only to suppress
an unhandled event log message).

Signed-off-by: Hao Wei Tee <angelsl@angelsl.xyz>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/ideapad-laptop.c