]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit93a51470b085c1584325fc1c3526bcc6fd79f9e0
tree7197ca2df4cf44b4e9014e85ae043c5bde2dca4a
parenta27f6b11677a8b8a6373852ab8a7224c5d5f1600
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 (376df9761ee2140ba0274023448e107e98e59454) 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