From patchwork Wed Feb 8 13:51:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Drake X-Patchwork-Id: 9562579 X-Patchwork-Delegate: andy.shevchenko@gmail.com 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 A2281601E5 for ; Wed, 8 Feb 2017 13:51:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9467E284D0 for ; Wed, 8 Feb 2017 13:51:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 88F84284D8; Wed, 8 Feb 2017 13:51:57 +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 30740284D0 for ; Wed, 8 Feb 2017 13:51:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932401AbdBHNv4 (ORCPT ); Wed, 8 Feb 2017 08:51:56 -0500 Received: from mail-ua0-f182.google.com ([209.85.217.182]:35756 "EHLO mail-ua0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932358AbdBHNvz (ORCPT ); Wed, 8 Feb 2017 08:51:55 -0500 Received: by mail-ua0-f182.google.com with SMTP id y9so109818792uae.2 for ; Wed, 08 Feb 2017 05:51:55 -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=bwQsSBxdKcOcQn/mnlOd8/pCno+LzXzFp430FKrhxJw=; b=X2Yhz/G/F26gfGIUTTz8jxJyFOuBX4SKjuJpdIoS/94UQx0KejsFYeXdQYIvv1iZqX gVuzF8bIJcHyN8p3GkbBpEOOHCpVeyQlndMR5TISN4Joksih6LomQ81I1Yzmp7DgyLtF CONn3iN0wViKBNPc4efnFsNGWwyTfGqZwWrd5GAacwmxj7kQnbhVm6W1uT7jvfegfIeu P/XRX3siV4lHocn8MI72KmrnSJJWZDH38K/OCAiAunezkb41RHozxIu+bonmK+Cw1Df0 v5U/NlzTRDoJ0klaReIPAeW3iXvUO7dT0cOQickLF9nzRfDWN3ukv0GEiBujF2LtGJw+ 83Cg== 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=bwQsSBxdKcOcQn/mnlOd8/pCno+LzXzFp430FKrhxJw=; b=mXHXRSIgyf6kF2gL9Nn8myaRBJAlx/BRCA/p4UIGY9X5cYKfhmIKVCrDF2nfAiS5EA fD/vv272APlBfoSiPSkGL/0zEUrHiohvW78o7hX0d9PVEeVfbAEotWe1s/USTHoxRhfh QT6HkP/QpxsOii8Gyac7RpjT08U2xsIXGIjESt8IvQMZk3Y59+IO1WWrg+mYXhPNCKXI VTnBVpcYsiBI5s7Nf05DR+j6T79JfNdi2sLBgNIFq+cw+gT2aTK+Yw2bQkWiI2ePAcnb oITWRbDADxlWjGJqF6D7qjXLvolyZIWgn1jr6h6J9ylcxDi+OxAV+nDeL69c8KNC3sob fGCQ== X-Gm-Message-State: AIkVDXJQbH73hOgeBnVLWDtXVaIO2gT0YQEBIMfqWJow0eQOPqftKeIeYh+5XNpYU7Y8gK2j X-Received: by 10.159.49.25 with SMTP id m25mr11133833uab.87.1486561910026; Wed, 08 Feb 2017 05:51:50 -0800 (PST) Received: from nuc.gallo.pinto ([186.77.195.208]) by smtp.gmail.com with ESMTPSA id a91sm2813859uaa.17.2017.02.08.05.51.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Feb 2017 05:51:49 -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 v4 2/2] platform/x86: acer-wmi: add another KEY_WLAN keycode Date: Wed, 8 Feb 2017 07:51:41 -0600 Message-Id: <20170208135141.2105-2-drake@endlessm.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170208135141.2105-1-drake@endlessm.com> References: <20170208135141.2105-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 Reviewed-by: Lee, Chun-Yi --- 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 3795d3f..0568c1a 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} };