From: Carlo Caione Date: Tue, 8 Dec 2020 06:11:11 +0000 (+0800) Subject: x86/platform: classmate-laptop: add WiFi media button X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=aa8994fbf2a01c91518f48848fa657d915ba046b;p=linux.git x86/platform: classmate-laptop: add WiFi media button 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 Reviewed-by: Chris Chiu Link: https://lore.kernel.org/r/20201208061111.29073-1-chiu@endlessos.org Signed-off-by: Hans de Goede --- diff --git a/drivers/platform/x86/classmate-laptop.c b/drivers/platform/x86/classmate-laptop.c index af063f6908460..3e03e8d3a07fa 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 };