Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1775933pxp; Mon, 7 Mar 2022 02:03:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJyBTPoLYXCpFjXSZoisenYXEmbX+OweJB1tLvt0w85CizMYRqNrh3smrOkenzrfwTOEhQfz X-Received: by 2002:a05:6402:d51:b0:416:5f17:990 with SMTP id ec17-20020a0564020d5100b004165f170990mr757672edb.239.1646647387414; Mon, 07 Mar 2022 02:03:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646647387; cv=none; d=google.com; s=arc-20160816; b=ePEjR9wQLi92G1J4ewj7SintF0ygaTjqwG0425k0PhRyv8/PUDm2SgqQp880DPCqf5 SbcbNJBL6iCLMeWwtVv9cPxwDvwIn/dsOq9LEcTfFiDsxiozI3kERUYwg2hpHwrNdduN r8f8UPCHhrfK54u5FGZliN6f5JovJSrUieCCL1xhDLLf1IwnNQkyBU3i3/ZEiWJ6e7GO vWFIQDGJgpQXbGEm/gSQ7nobRc99uFLVwM6ybaYG1YjBF7PgorlcwDwjzZB7OX8W12mI YTV38CzxpIPEjDbYHJNHlVANi/p8ZLCIkQLiNfEpS4eAK8SGQdBmgLlmWaKr4hmOQCSk oKaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=fJ+quNgfJY/NYutEskWVSXvCaLTJkDtdf9hKPkZvJ8s=; b=iXh2WbsOMk29FRikO/uVp2/oij3/krnhw3xNbHzZhdYf9XrZBFCejC9KUCX80yw8Kk bWlFyjzKicScNbnZWTNVgBDvf5yW1G7sqHQHzWT+6YdRhJRYvx2oiJM3pfzWrg6MAfl/ 0U4zQHdH+c3GhFH1gxKLunDGoHILX5yeib6SkppJ4GZbyZblCLCTFxMm2Dodceaou2oU neXnMqCiS+aSQ7cJ1Gw10rjEmG0INNx9KUcA73Gqk+6wr7peGAl9tBKvvBZDS6+CBwEH bbv/p6C49MhAoegQjNJn/BhC6oeyApudCAqJvqAPiSp3asFTQZXWbljjd3feaAbVbjtl S4jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=t8s+1UfF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f8-20020a056402354800b00415926cc7b5si9351898edd.188.2022.03.07.02.02.44; Mon, 07 Mar 2022 02:03:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=t8s+1UfF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236800AbiCGJ0b (ORCPT + 99 others); Mon, 7 Mar 2022 04:26:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237346AbiCGJXs (ORCPT ); Mon, 7 Mar 2022 04:23:48 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2530753702; Mon, 7 Mar 2022 01:22:54 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B40D26112D; Mon, 7 Mar 2022 09:22:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C186CC340E9; Mon, 7 Mar 2022 09:22:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1646644973; bh=2hD2Zy8q0u/gvLIiemZem1RJ9k1fcEV26TC5ytos6DE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=t8s+1UfFUXPEs9CfGCyN4eh6+UWwIKh6dD3YF6L18CjHVU3fnWNsCoLSQlf4fPLe6 vTPmeM1DHCusR50t/8rAfebjPvpLsj5fUZB2Rd2PSyUIt2dz9oz1ZABA+iJ7nTQfa0 SUN7uKmBvHowQo3VQ7ddDii03zVzTiahGzWI1KwA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, William Mahon , Benjamin Tissoires , Dmitry Torokhov Subject: [PATCH 4.14 40/42] HID: add mapping for KEY_ALL_APPLICATIONS Date: Mon, 7 Mar 2022 10:19:14 +0100 Message-Id: <20220307091637.319648176@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220307091636.146155347@linuxfoundation.org> References: <20220307091636.146155347@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: William Mahon commit 327b89f0acc4c20a06ed59e4d9af7f6d804dc2e2 upstream. This patch adds a new key definition for KEY_ALL_APPLICATIONS and aliases KEY_DASHBOARD to it. It also maps the 0x0c/0x2a2 usage code to KEY_ALL_APPLICATIONS. Signed-off-by: William Mahon Acked-by: Benjamin Tissoires Link: https://lore.kernel.org/r/20220303035618.1.I3a7746ad05d270161a18334ae06e3b6db1a1d339@changeid Signed-off-by: Dmitry Torokhov Signed-off-by: Greg Kroah-Hartman --- drivers/hid/hid-debug.c | 4 +++- drivers/hid/hid-input.c | 2 ++ include/uapi/linux/input-event-codes.h | 3 ++- 3 files changed, 7 insertions(+), 2 deletions(-) --- a/drivers/hid/hid-debug.c +++ b/drivers/hid/hid-debug.c @@ -835,7 +835,9 @@ static const char *keys[KEY_MAX + 1] = { [KEY_F22] = "F22", [KEY_F23] = "F23", [KEY_F24] = "F24", [KEY_PLAYCD] = "PlayCD", [KEY_PAUSECD] = "PauseCD", [KEY_PROG3] = "Prog3", - [KEY_PROG4] = "Prog4", [KEY_SUSPEND] = "Suspend", + [KEY_PROG4] = "Prog4", + [KEY_ALL_APPLICATIONS] = "AllApplications", + [KEY_SUSPEND] = "Suspend", [KEY_CLOSE] = "Close", [KEY_PLAY] = "Play", [KEY_FASTFORWARD] = "FastForward", [KEY_BASSBOOST] = "BassBoost", [KEY_PRINT] = "Print", [KEY_HP] = "HP", --- a/drivers/hid/hid-input.c +++ b/drivers/hid/hid-input.c @@ -1026,6 +1026,8 @@ static void hidinput_configure_usage(str case 0x28b: map_key_clear(KEY_FORWARDMAIL); break; case 0x28c: map_key_clear(KEY_SEND); break; + case 0x2a2: map_key_clear(KEY_ALL_APPLICATIONS); break; + case 0x2c7: map_key_clear(KEY_KBDINPUTASSIST_PREV); break; case 0x2c8: map_key_clear(KEY_KBDINPUTASSIST_NEXT); break; case 0x2c9: map_key_clear(KEY_KBDINPUTASSIST_PREVGROUP); break; --- a/include/uapi/linux/input-event-codes.h +++ b/include/uapi/linux/input-event-codes.h @@ -278,7 +278,8 @@ #define KEY_PAUSECD 201 #define KEY_PROG3 202 #define KEY_PROG4 203 -#define KEY_DASHBOARD 204 /* AL Dashboard */ +#define KEY_ALL_APPLICATIONS 204 /* AC Desktop Show All Applications */ +#define KEY_DASHBOARD KEY_ALL_APPLICATIONS #define KEY_SUSPEND 205 #define KEY_CLOSE 206 /* AC Close */ #define KEY_PLAY 207