Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp455880pxm; Wed, 2 Mar 2022 20:00:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJwtKadtwbP53fruK1C6Kmtf1SiPmu732UgCdAWpFHZ9I1FIJ53iFTiIuGZjwy69Dcu2H4xw X-Received: by 2002:a17:906:2403:b0:6d1:ca2:4da7 with SMTP id z3-20020a170906240300b006d10ca24da7mr24917944eja.533.1646280000921; Wed, 02 Mar 2022 20:00:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646280000; cv=none; d=google.com; s=arc-20160816; b=Fw6qUTP4w+LPtPV40lqgqN7uYhyOaxPeyEF3btnjZzxqpOgO28a9uAZuf6SVgo+KCS JN0+8xish3f08xLGUrEsalEnhSPnmguf/foj84R5Z+jMxEWZSeCoaPCExxiVaE4WQtPr zvLlHXFC/0BeRu4ZHQVDApmtXuhAg4/I3UpVJ43iu1p3knqEMt+yuUInQN0eCmNGH2c9 ikL99RB56HPSbjcViZt3mms4tOkNdnelMq/0zuiKxKcqJB83xmDwAL1vBgmnvfP2NHo3 And5kocFpYxqqbJinQkvyqu6VCD7CJaV1sdS5S8MffzkmKMOWaZGoHhfflpHu/m2oq4l 7TiQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=sN56U/MxzcAq7Ji7ujqvCiSFXq3Px2uncy+XviL6Elo=; b=KsldUaHHpTxZiw6sOy+mRqF6UXjtjxRtwT7fl34g7v678cajvaLlskIVAbiwZRo0NS Sc6GUcnQggS7iEyWB0KG2P+sjmPWs59KGKReTcPBWxPM+f98x1/IoiSi/QjLz9hqx3gE k5OdFei9eci2jbXZwF36NP42KqXSJiG4lAVQeNvu5IU8x7z71vjq99MMGsx5ilBBE/fT rC+b9ecstUkFhKXw+VTMeK05EORfTJHpxqx1hMHSE+q6RqGvYRaDp9s92jIGrysTuqy5 rsmzHW6sbEUwYhf6gebsgZVwC4lt/gBCOOSfCa8H3LYy25Mov42BNy+zlzkpGUKFagNc 3GKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=UzQ9ZzQu; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w2-20020a1709067c8200b006d0876dbdd7si555244ejo.687.2022.03.02.19.59.38; Wed, 02 Mar 2022 20:00:00 -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=@chromium.org header.s=google header.b=UzQ9ZzQu; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229564AbiCCD6B (ORCPT + 99 others); Wed, 2 Mar 2022 22:58:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229470AbiCCD6A (ORCPT ); Wed, 2 Mar 2022 22:58:00 -0500 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31E6615041C for ; Wed, 2 Mar 2022 19:57:16 -0800 (PST) Received: by mail-pj1-x102e.google.com with SMTP id m22so3627894pja.0 for ; Wed, 02 Mar 2022 19:57:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=sN56U/MxzcAq7Ji7ujqvCiSFXq3Px2uncy+XviL6Elo=; b=UzQ9ZzQuF00lfXHKdO8TTfq27JObbQGJkGO7h1nBMLLCb6WKsmcoWsWxBSKHeMcPJr bqIONY1/aUpiDtuKJkzTcvmDgo+MYYpWoPG0MHc6dDCkk8+CZ+a4VpeXH0E2zlbMqwQj xiWw8fjxPVyLy0CcQ4/l5LZrc26kU4GS/iyC0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=sN56U/MxzcAq7Ji7ujqvCiSFXq3Px2uncy+XviL6Elo=; b=nGcCWRQuyKuklRs7Btzna9KKZ+KSi0OGpLcWTwm5uHOmcXVXNe9XW2Xl0Fbqs17BFF QgHSJRsMD+BZnnW793lo841/bFP/bbOWHgjMCUg7vUdUjmGlPHAWhk/W79Ufoy0bQDjL QCeaJMwHjKekl1HrsYQjpKg4eC+66IAqBgJEkKNhP6xtkfN4ZLgUBvGSqaLe1kGZZTLd zfqCWDsU6i1WzX7jIYH6vIAsvYlEuS3/k2zRKevEkvPDamwcwiKAASlT4WlhNSwjUWa4 MRzsW2YDCRW/0kd5bYivFUMq215lSheDb3Hi6ezF9QWzl/ZOeqARwFBWD11C0wH/WrLR 5Hsw== X-Gm-Message-State: AOAM531XhGEV88ROcIe4iQNw+Q04dj6FXY76dbF1t0MMyLnn71fLKk0e tigjByO74uUbmPBjPouPUEg4frauOFpVnA== X-Received: by 2002:a17:902:e5c3:b0:151:96df:e06a with SMTP id u3-20020a170902e5c300b0015196dfe06amr6430506plf.41.1646279835479; Wed, 02 Mar 2022 19:57:15 -0800 (PST) Received: from wmahon.c.googlers.com.com (218.180.124.34.bc.googleusercontent.com. [34.124.180.218]) by smtp.gmail.com with ESMTPSA id m11-20020a17090a3f8b00b001bc299e0aefsm6526366pjc.56.2022.03.02.19.57.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Mar 2022 19:57:15 -0800 (PST) From: William Mahon X-Google-Original-From: William Mahon To: LKML Cc: William Mahon , William Mahon , Benjamin Tissoires , Dmitry Torokhov , Jiri Kosina , linux-input@vger.kernel.org Subject: [PATCH v3] HID: Add mapping for KEY_ALL_APPLICATIONS Date: Thu, 3 Mar 2022 03:57:03 +0000 Message-Id: <20220303035618.1.I3a7746ad05d270161a18334ae06e3b6db1a1d339@changeid> X-Mailer: git-send-email 2.35.1.616.g0bdcbb4464-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 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 --- drivers/hid/hid-debug.c | 1 + drivers/hid/hid-input.c | 2 ++ include/uapi/linux/input-event-codes.h | 3 ++- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/hid/hid-debug.c b/drivers/hid/hid-debug.c index 01135713e8f9..dbde52bd6585 100644 --- a/drivers/hid/hid-debug.c +++ b/drivers/hid/hid-debug.c @@ -939,6 +939,7 @@ static const char *keys[KEY_MAX + 1] = { [KEY_KBDINPUTASSIST_NEXTGROUP] = "KbdInputAssistNextGroup", [KEY_KBDINPUTASSIST_ACCEPT] = "KbdInputAssistAccept", [KEY_KBDINPUTASSIST_CANCEL] = "KbdInputAssistCancel", + [KEY_ALL_APPLICATIONS] = "AllApplications", }; static const char *relatives[REL_MAX + 1] = { diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c index eccd89b5ea9f..c3e303c1d8d1 100644 --- a/drivers/hid/hid-input.c +++ b/drivers/hid/hid-input.c @@ -1162,6 +1162,8 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel case 0x29d: map_key_clear(KEY_KBD_LAYOUT_NEXT); 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; diff --git a/include/uapi/linux/input-event-codes.h b/include/uapi/linux/input-event-codes.h index 311a57f3e01a..556aa8f88201 100644 --- 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 +#define KEY_DASHBOARD KEY_ALL_APPLICATIONS /* AL Dashboard */ #define KEY_SUSPEND 205 #define KEY_CLOSE 206 /* AC Close */ #define KEY_PLAY 207 -- 2.35.1.616.g0bdcbb4464-goog