From patchwork Tue Feb 7 19:05:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Drake X-Patchwork-Id: 9560915 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 16142602B1 for ; Tue, 7 Feb 2017 19:15:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 065182847B for ; Tue, 7 Feb 2017 19:15:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ED8162847D; Tue, 7 Feb 2017 19:15:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.4 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8F4E22847B for ; Tue, 7 Feb 2017 19:15:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754861AbdBGTPZ (ORCPT ); Tue, 7 Feb 2017 14:15:25 -0500 Received: from mail-vk0-f46.google.com ([209.85.213.46]:35245 "EHLO mail-vk0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754498AbdBGTPY (ORCPT ); Tue, 7 Feb 2017 14:15:24 -0500 Received: by mail-vk0-f46.google.com with SMTP id x75so84847096vke.2 for ; Tue, 07 Feb 2017 11:15:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=endlessm-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=tctTTYS/UYRWWBJ+EE0Q19PWmh36xVW6/mhIU50wMx8=; b=NgocyhhoiEqKpQ5BBHPKyZDXoO4aiWxcgdSeZvr000pPOFD9apkXgkj7iXUwAKU6Rz wzwzcR4aZ4lZ5eX5/Z6y4rDktRCL260qZnfKDRlsJGZQqRoYQJk72BQIIHZKQ/7k2Tqd G93BclXylKhiaXVDuagthFtDJCexyKsWXZIEKe7Gth/YuwhW+J0xis0yiAU/rnGb+xB4 4id2nIdYOuMj5lJhrlnJysg9DJ7SC7XdIU/Nn9nhB8x0HePsfz4phrjV5M2vrtWOz4it wtoA20HZXSFw/OJONXTG1UsaUl3Wvs5CsIThwzWROBnxyGmVrQkgV9drAbErO3RwW8Zd mL7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=tctTTYS/UYRWWBJ+EE0Q19PWmh36xVW6/mhIU50wMx8=; b=frD3jYW5GzXaJ4m7iFbXJTb2bVDfT83FQtszRaJLO04QTZolah8iLXuQ0O5OM3fJnK ee/vTPAdSPT14zOin7b+bnhqHP9inYEBnyADjc0OwVF5aOQtvmSDlHKWinEAQrStEuwb Ms1+CTXUWg8tvBe2NJDCLAD6sNyEkdGhZgJ2O/KQJS1xW3epMlvtLCeZb0mwReMMkQT4 DYoTjG1qHKoZfJdoAKgjZ1QnPLJK05znIC1iHYUCPwZ/4zbdV1AUKiTjNKqt/O41GHeX ZAY3OXbnejD6Tmw35kEcbhvb9djcI20zPT5kMWUCACTs75gtZ6VpHu/biuW7gN9NuFtG mvrQ== X-Gm-Message-State: AMke39nvoM8/+ItP2HlrIMkXxlPalibBnae8BWsfm3rWUUJ23Oel6uV2Zhy4/kdc6UHDXbwP X-Received: by 10.31.96.200 with SMTP id u191mr8186053vkb.53.1486494324196; Tue, 07 Feb 2017 11:05:24 -0800 (PST) Received: from nuc.gallo.pinto ([186.77.199.144]) by smtp.gmail.com with ESMTPSA id y7sm1845815vky.16.2017.02.07.11.05.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Feb 2017 11:05:23 -0800 (PST) From: Daniel Drake To: jlee@suse.com, dvhart@infradead.org, andy@infradead.org Cc: platform-driver-x86@vger.kernel.org, linux@endlessm.com, chiu@endlessm.com Subject: [PATCH v3 2/2] platform/x86: acer-wmi: add another KEY_WLAN keycode Date: Tue, 7 Feb 2017 13:05:11 -0600 Message-Id: <20170207190511.10039-2-drake@endlessm.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170207190511.10039-1-drake@endlessm.com> References: <20170207190511.10039-1-drake@endlessm.com> Sender: platform-driver-x86-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: platform-driver-x86@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Chris Chiu 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 Signed-off-by: Daniel Drake --- drivers/platform/x86/acer-wmi.c | 1 + 1 file changed, 1 insertion(+) v3: split off this change from the original patch diff --git a/drivers/platform/x86/acer-wmi.c b/drivers/platform/x86/acer-wmi.c index fd15e7c..ecdf6f1 100644 --- a/drivers/platform/x86/acer-wmi.c +++ b/drivers/platform/x86/acer-wmi.c @@ -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} };