Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp3606858pxm; Tue, 1 Mar 2022 01:34:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJwm1b/Rl0t8tohrNfWPC7nanOThtLqh4ARt7G6tZwOuQEx+dLgktM1peCj+2tXnl/J6bDry X-Received: by 2002:a17:906:1656:b0:6cf:571c:f91d with SMTP id n22-20020a170906165600b006cf571cf91dmr18122938ejd.377.1646127282937; Tue, 01 Mar 2022 01:34:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646127282; cv=none; d=google.com; s=arc-20160816; b=Tfqj6dB47zZ057mkuSvaLdKdq1uJKi63vCsbpelR9H4Vw4+caQytzuZpw5euZbbRSl rtS1JP2g6AmGcXh1aYpTPkXtwrAA6Z8Lz8YECJex1FnhKjNknrlYShx2V22J89EyD5jh +mhLYesKTvCLB1ROTPbn97tgUCm+N5+WQJ5psixnEA1fJqIX5cAZJ97CbkXHLlwVQM50 G2l+d7MEKN67EUX2lSFqYFkCFEsmm4oOX6yQZvdex89I9uA7Nmat+m3kySxQEWp0JR8R LvTRilm5IWDPEFuy9xVULJJvMKfli/GfqQaw/V3W0t+4HqNRed3H6hHaGbgmSPSavkUf TSXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Ux6f0w+/rugl91b1fITi77MXLqhRABNU0vOsRDVUGr8=; b=hd89Q3YsGJHCq6Y59PhhjDHkrmfciXSvGsRQwmES9Z/nD8OqMnqbnDwqt1djbW1geE y1QR0UqpWuk29dwCHZU3ERgBeMpiiccE6wQljLQ86XHGM1cePUS/6eJ4ICfNXSfkJ5Ol BjeoI0V+grRcAJSy30iTAhhDrUv4SHcJAhdFXj35cDHhvw2phCI9F0hhvIbxSFHNMJZP ittremuoU7KYFGiSClhxHe1TqKMNoFa0UNKoDC1q0NSwV1gyK+HW0yHJZgvaeejK9cii s11hiIbQla4TeUDCIuvZxrq6W0Fx0D0AyI8RQHiGMkJPy7AlITdYQ+gO5ZNwd/sLWVdj RVcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=YTabYLTK; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x22-20020aa7dad6000000b00410e0d5af0csi8088993eds.377.2022.03.01.01.34.18; Tue, 01 Mar 2022 01:34:42 -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=@gmail.com header.s=20210112 header.b=YTabYLTK; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232868AbiCAH3g (ORCPT + 99 others); Tue, 1 Mar 2022 02:29:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232413AbiCAH3f (ORCPT ); Tue, 1 Mar 2022 02:29:35 -0500 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49EA944740; Mon, 28 Feb 2022 23:28:55 -0800 (PST) Received: by mail-pj1-x102a.google.com with SMTP id ev16-20020a17090aead000b001bc3835fea8so1485879pjb.0; Mon, 28 Feb 2022 23:28:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Ux6f0w+/rugl91b1fITi77MXLqhRABNU0vOsRDVUGr8=; b=YTabYLTKvQUeycuTSVEF/GiCuWpt3dgzOnXmHVGIW5yXqUpnGHRl3YRcr38JpbcBBW Dm772Fy0OzObt5rK9mLNV/0VXmDdFEYx+mI41ROMORsvCAd9He+WqFpMQr1bYIavmPLw MsiK3pf7qxNeYndwU8tfJFmIoagPMRRwyMoshRqDaKmolGlQzEuZmumkFKJ7ibMY2Bny IualYTy+dBZltLnDYQuMSVA5Mh2jeC+pIz5I9HFRprbwHNScxq5H7NQ/17cwatg/WdG5 UTlzxG8bk0JAp800rnrOmHSkmoTAZHmXw1NALtBdORhqF6bU/ldszfPZ7nLinp9vLLPH bwgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Ux6f0w+/rugl91b1fITi77MXLqhRABNU0vOsRDVUGr8=; b=f5xcHe7zCxCMCpuXuT3PWLuFayFczaVgAuNsZZbNJCIA4EGqCa8s1TfD9CHIo3IEHE upwBrfvb5unNwklALK3aHB4QN/zpDacRnof7mUbSihqy5Ikl6vcasFe+RrKX0kTzKw5q vOM63mZtDpwd/vHnN7V9GaPcRgaVHr+LR62UGcUo1aSd1ynH56DLay0v1FYvY6FBM/1U BLBUiR2I900kFgP126LJ75pHsrgX0IGpJUZPzHrA2KoxUHOsUg6tKk3lnhwl/PgNNE8D 4xuXrgYThbvGLcg/NsnYws448xjd3JtFFW5vTqDLAM4bhOoolXy1vo/My4oo9+7xEXC9 2Ppw== X-Gm-Message-State: AOAM5322Fd0SD2m9L3884mPKFj3qqxAkeGqFnwA0uQDReS8Uni2kddPL +j+txx98akkJQ2iB4vbDkKQ= X-Received: by 2002:a17:903:1206:b0:151:7d67:2924 with SMTP id l6-20020a170903120600b001517d672924mr2920678plh.45.1646119734656; Mon, 28 Feb 2022 23:28:54 -0800 (PST) Received: from google.com ([2620:15c:202:201:c174:264:5e49:f2cb]) by smtp.gmail.com with ESMTPSA id w17-20020a056a0014d100b004f1063290basm15953880pfu.15.2022.02.28.23.28.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Feb 2022 23:28:53 -0800 (PST) Date: Mon, 28 Feb 2022 23:28:51 -0800 From: Dmitry Torokhov To: William Mahon Cc: LKML , William Mahon , Benjamin Tissoires , Jiri Kosina , linux-input@vger.kernel.org Subject: Re: [PATCH v2] HID: Add mapping for KEY_ALL_APPLICATIONS Message-ID: References: <20220218233350.1.I3a7746ad05d270161a18334ae06e3b6db1a1d339@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220218233350.1.I3a7746ad05d270161a18334ae06e3b6db1a1d339@changeid> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 On Fri, Feb 18, 2022 at 11:35:49PM +0000, William Mahon wrote: > This patch adds a new key definition for KEY_ALL_APPLICATIONS > which is an alias of KEY_DASHBOARD. > > It also maps the 0x0c/0x2a2 usage code to KEY_ALL_APPLICATIONS. Jiri, Benjamin, OK for me to pick it up? > > Signed-off-by: William Mahon > --- > > drivers/hid/hid-input.c | 2 ++ > include/uapi/linux/input-event-codes.h | 1 + > 2 files changed, 3 insertions(+) > > 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..e520f22c1b8d 100644 > --- a/include/uapi/linux/input-event-codes.h > +++ b/include/uapi/linux/input-event-codes.h > @@ -279,6 +279,7 @@ > #define KEY_PROG3 202 > #define KEY_PROG4 203 > #define KEY_DASHBOARD 204 /* AL Dashboard */ > +#define KEY_ALL_APPLICATIONS KEY_DASHBOARD > #define KEY_SUSPEND 205 > #define KEY_CLOSE 206 /* AC Close */ > #define KEY_PLAY 207 > -- > 2.35.1.473.g83b2b277ed-goog > -- Dmitry