platform/x86: dell-wmi: Ignore new rfkill and fn-lock events
authorKai Heng Feng <kai.heng.feng@canonical.com>
Fri, 1 Jun 2018 03:23:22 +0000 (11:23 +0800)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 4 Jun 2018 09:20:22 +0000 (12:20 +0300)
commit64b824649b7787c9ac491015f16ffa4ad2ec287e
tree6ae79f4fa1cd392bd2b4e68edc8cfe8b7c314aec
parent1189456b1cce36f653622d15c0f38410bf6c37c5
platform/x86: dell-wmi: Ignore new rfkill and fn-lock events

There are two new events generated by dell-wmi, rfkill and fn-lock, from
Dell Systems.

When Fn-lock hotkey gets pressed to switch to function mode:
[85951.591542] dell_wmi: Unknown key with type 0x0010 and code 0xe035
pressed
[85951.591546] dell_wmi: Unknown key with type 0x0010 and code 0x0000
pressed

When Fn-lock hotkey gets pressed to switch to multimedia mode:
[85956.667686] dell_wmi: Unknown key with type 0x0010 and code 0xe035
pressed
[85956.667690] dell_wmi: Unknown key with type 0x0010 and code 0x0001
pressed

When radio hotkey gets pressed:
[85974.430220] dell_wmi: Unknown key with type 0x0010 and code 0xe008
pressed

These events are for notification purpose, so we can ignore them.

This patch is tested on XPS 9370.

Reviewed-by: Pali Rohár <pali.rohar@gmail.com>
Reviewed-by: Mario Limonciello <mario.limonciello@dell.com>
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/dell-wmi.c