[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20180420213212.30445-1-antonio.intilisano@gmail.com>
Date: Fri, 20 Apr 2018 23:32:12 +0200
From: Antonio Rosario Intilisano <antonio.intilisano@...il.com>
To: dvhart@...radead.org
Cc: andy@...radead.org, platform-driver-x86@...r.kernel.org,
linux-kernel@...r.kernel.org, locutusofborg@...ian.org,
Antonio Rosario Intilisano <antonio.intilisano@...il.com>,
Chris Chiu <chiu@...lessm.com>,
Daniel Drake <drake@...lessm.com>,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Subject: [PATCH] platform/x86: acer-wmi: add another KEY_POWER keycode
Now that we have informed the firmware that the Power Button driver is
active, laptops such as the Acer Swift 3 will generate
a WMI key event with code 0x87 when the power button key is
pressed.
Add this keycode to the table so that it is converted to an appropriate
input event.
Signed-off-by: Antonio Rosario Intilisano <antonio.intilisano@...il.com>
Acked-by: Gianfranco Costamagna <locutusofborg@...ian.org>
Cc: Chris Chiu <chiu@...lessm.com>
Cc: Daniel Drake <drake@...lessm.com>
Cc: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
---
drivers/platform/x86/acer-wmi.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/platform/x86/acer-wmi.c b/drivers/platform/x86/acer-wmi.c
index 1be71f956d5c..8952173dd380 100644
--- a/drivers/platform/x86/acer-wmi.c
+++ b/drivers/platform/x86/acer-wmi.c
@@ -129,6 +129,7 @@ static const struct key_entry acer_wmi_keymap[] __initconst = { {KE_IGNORE, 0x83, {KEY_TOUCHPAD_TOGGLE} },
{KE_KEY, 0x85, {KEY_TOUCHPAD_TOGGLE} },
{KE_KEY, 0x86, {KEY_WLAN} },
+ {KE_KEY, 0x87, {KEY_POWER} },
{KE_END, 0}
};
--
2.15.1
Powered by blists - more mailing lists