]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: dell-wmi: add new keymap type 0x0012
authorY Paritcher <y.linux@paritcher.com>
Wed, 10 Jun 2020 17:56:57 +0000 (13:56 -0400)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 9 Jul 2020 19:47:27 +0000 (22:47 +0300)
commiteaf5ff77bf775d84412fbba3fbf307eaab6a0eda
treefb4b1edcbfd3d76c4582de138977ed3d4af1caee
parentb8695b5e7973445b7731d6448c03d43c214c7e89
platform/x86: dell-wmi: add new keymap type 0x0012

These are events with extended data. The extended data is
currently ignored as userspace does not have a way to deal
it.

Ignore event with a type of 0x0012 and a code of 0xe035, as
the keyboard controller takes care of Fn lock events by itself.
This silences the following messages being logged when
pressing the Fn-lock key on a Dell Inspiron 5593:

dell_wmi: Unknown WMI event type 0x12
dell_wmi: Unknown key with type 0x0012 and code 0xe035 pressed

This is consistent with the behavior for the Fn-lock key
elsewhere in this file.

Signed-off-by: Y Paritcher <y.linux@paritcher.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Mario Limonciello <mario.limonciello@dell.com>
drivers/platform/x86/dell-wmi.c