platform/x86: acer-wmi: add another KEY_WLAN keycode
authorChris Chiu <chiu@endlessm.com>
Wed, 8 Feb 2017 13:51:41 +0000 (07:51 -0600)
committerDarren Hart <dvhart@linux.intel.com>
Sat, 25 Feb 2017 07:48:50 +0000 (23:48 -0800)
Now that we have informed the firmware that the RF Button driver is
active, laptops such as the Acer TravelMate P238-M will generate
a WMI key event with code 0x86 when the Fn+F3 airplane mode key is
pressed.

Add this keycode to the table so that it is converted to an appropriate
input event.

Signed-off-by: Chris Chiu <chiu@endlessm.com>
Signed-off-by: Daniel Drake <drake@endlessm.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/acer-wmi.c

index 4f633570531ae76bcd19f5e216f73e5879b1e1da..dac0fbe87460ebc5b816746830e626ba3876fe83 100644 (file)
@@ -128,6 +128,7 @@ static const struct key_entry acer_wmi_keymap[] __initconst = {
        {KE_KEY, KEY_TOUCHPAD_OFF, {KEY_TOUCHPAD_OFF} },
        {KE_IGNORE, 0x83, {KEY_TOUCHPAD_TOGGLE} },
        {KE_KEY, 0x85, {KEY_TOUCHPAD_TOGGLE} },
+       {KE_KEY, 0x86, {KEY_WLAN} },
        {KE_END, 0}
 };