[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20201208061111.29073-1-chiu@endlessos.org>
Date: Tue, 8 Dec 2020 14:11:11 +0800
From: Chris Chiu <chiu@...lessos.org>
To: cascardo@...oscopio.com, don@...t.com.br, dvhart@...radead.org,
andy@...radead.org
Cc: platform-driver-x86@...r.kernel.org, linux-kernel@...r.kernel.org,
linux@...lessos.org, Carlo Caione <carlo@...lessm.com>,
Chris Chiu <chiu@...lessos.org>
Subject: [PATCH] x86/platform: classmate-laptop: add WiFi media button
From: Carlo Caione <carlo@...lessm.com>
The WiFi media button on the Quanta NL3 reports keycodes 0x8b and 0x9b
to the platform driver. Add the mapping to support these codes.
Signed-off-by: Carlo Caione <carlo@...lessm.com>
Reviewed-by: Chris Chiu <chiu@...lessos.org>
---
drivers/platform/x86/classmate-laptop.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/platform/x86/classmate-laptop.c b/drivers/platform/x86/classmate-laptop.c
index af063f690846..3e03e8d3a07f 100644
--- a/drivers/platform/x86/classmate-laptop.c
+++ b/drivers/platform/x86/classmate-laptop.c
@@ -1023,6 +1023,8 @@ static int cmpc_keys_codes[] = {
KEY_CAMERA,
KEY_BACK,
KEY_FORWARD,
+ KEY_UNKNOWN,
+ KEY_WLAN, /* NL3: 0x8b (press), 0x9b (release) */
KEY_MAX
};
--
2.20.1
Powered by blists - more mailing lists