Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp448402pxb; Thu, 17 Feb 2022 07:29:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJz2NC1Nbizgyl4WWRcqVjD/BbFyqkJTG3oQLnxIkV1rIaL/5jkopop6sZW5SLYN63RxEMMn X-Received: by 2002:a17:907:9043:b0:6cc:2e9d:233e with SMTP id az3-20020a170907904300b006cc2e9d233emr2647589ejc.53.1645111759255; Thu, 17 Feb 2022 07:29:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645111759; cv=none; d=google.com; s=arc-20160816; b=TfyN+j+B2Uc/bM7BjPKVYoj5Qnpl7fIsrsc0/iqeIb9CTHAWvUdvgBWDk8qFCHsszS 9Hi6vgvxWl+ls6hfS0T37+isehwAJZilvhNWcYjEeVyn9PZtrrudSfKe28UmzGO2ljja 8t6hKwiKU+zhveqcl5lgtTcATU8XAY7ukxZTKle+rBfMp/KcstyHTlDe7r4xzP9QjSk5 dtrabYyNkbcOj5PcgmFUwVmvLbTy94zN0RaRqZ6Gn7n48KXcryh9l6076WrxIl7jlgAj 0/C1v87CqlmQo1PO/Y2awS32zp7c27jwh4JCDqS48yuaSPbvh8A0vL9oxFfw5uo0vA69 desQ== 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:date:cc:to:from:subject :message-id; bh=T8W2wMExgbPYh4Lq6KFLgjDr+oumSWBaaxa9PzDzYis=; b=IMZaT0IR3JdIGIgxvBNwzJs6C/s2Ix9W2nCncgMo/JpgxrpMmD002oMiP9zCffcv3o 8XYq0GHa+3Opuj/mneQSkyXspQlp22zoWE8iCKg+26qFH3YVg2N46Ld4rqg40BRD2zfy uZ+9UlCWjXpxHNAYpDAe1s5TcnQfTcYDQWFQSxh8BBCsFx4TBCzl0bvb4eW5foJcsvZy 8E6Av+g1QcoFH8tM06kCGPcDQ4FXACnuQ2TWu6qSghT04G2gJUcZCvolM8n/nKU2dWW0 lopjwuRYJOjYn4HrR2So4yeAw1lNdFTzsx7jK30LrWV63m/Ffe5PTnUsXETgiyFVUuOc 5c3Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l15si3951045edr.56.2022.02.17.07.28.53; Thu, 17 Feb 2022 07:29:19 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236930AbiBQKsv (ORCPT + 99 others); Thu, 17 Feb 2022 05:48:51 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:41998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230033AbiBQKsu (ORCPT ); Thu, 17 Feb 2022 05:48:50 -0500 Received: from mslow1.mail.gandi.net (mslow1.mail.gandi.net [217.70.178.240]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 505581ED1DB; Thu, 17 Feb 2022 02:48:35 -0800 (PST) Received: from relay10.mail.gandi.net (unknown [IPv6:2001:4b98:dc4:8::230]) by mslow1.mail.gandi.net (Postfix) with ESMTP id 8FCBAC5625; Thu, 17 Feb 2022 10:35:31 +0000 (UTC) Received: (Authenticated sender: hadess@hadess.net) by mail.gandi.net (Postfix) with ESMTPSA id 08D12240006; Thu, 17 Feb 2022 10:35:24 +0000 (UTC) Message-ID: <93e5dc0bbeb0b44c9b225946b3ab81d3af3a1789.camel@hadess.net> Subject: Re: [PATCH] HID: Add mapping for KEY_APP_LAUNCHER From: Bastien Nocera To: William Mahon , LKML Cc: William Mahon , Benjamin Tissoires , Dmitry Torokhov , Jiri Kosina , linux-input@vger.kernel.org Date: Thu, 17 Feb 2022 11:35:24 +0100 In-Reply-To: <20220217053354.1.I3a7746ad05d270161a18334ae06e3b6db1a1d339@changeid> References: <20220217053354.1.I3a7746ad05d270161a18334ae06e3b6db1a1d339@changeid> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.3 (3.42.3-1.fc35) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,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 Thu, 2022-02-17 at 05:33 +0000, William Mahon wrote: > The App Launcher key is used to bring up the Launcher menu. > > This patch adds a new key definition KEY_APP_LAUNCHER and maps > 0x0c02a28 Is this a typo? It's not the same format as in your other patch. KEY_DASHBOARD as used in the Mac keyboard drivers looks like a good match for KEY_APP_LAUNCHER. If not, it would be good to explain why in the commit message. See 437184ae8bd1ef923a40b009e37801deae66ad55 for the KEY_DASHBOARD addition. > usage code to this new keycode. Additionally hid-debug is adjusted to > recognize this new usage code as well. > > Signed-off-by: William Mahon > --- > >  drivers/hid/hid-debug.c                | 1 + >  drivers/hid/hid-input.c                | 2 ++ >  include/uapi/linux/input-event-codes.h | 2 ++ >  3 files changed, 5 insertions(+) > > diff --git a/drivers/hid/hid-debug.c b/drivers/hid/hid-debug.c > index 01135713e8f9..36a42ad3b7bc 100644 > --- a/drivers/hid/hid-debug.c > +++ b/drivers/hid/hid-debug.c > @@ -930,6 +930,7 @@ static const char *keys[KEY_MAX + 1] = { >         [KEY_SCREENSAVER] = "ScreenSaver", >         [KEY_VOICECOMMAND] = "VoiceCommand", >         [KEY_EMOJI_PICKER] = "EmojiPicker", > +       [KEY_APP_LAUNCHER] = "AppLauncher", >         [KEY_BRIGHTNESS_MIN] = "BrightnessMin", >         [KEY_BRIGHTNESS_MAX] = "BrightnessMax", >         [KEY_BRIGHTNESS_AUTO] = "BrightnessAuto", > diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c > index eccd89b5ea9f..7c89260826b2 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_APP_LAUNCHER);    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..fdf43cf14125 100644 > --- a/include/uapi/linux/input-event-codes.h > +++ b/include/uapi/linux/input-event-codes.h > @@ -651,6 +651,8 @@ >  #define KEY_DATA                       0x277 >  #define KEY_ONSCREEN_KEYBOARD          0x278 >   > +#define KEY_APP_LAUNCHER               0x27c > + >  #define BTN_TRIGGER_HAPPY              0x2c0 >  #define BTN_TRIGGER_HAPPY1             0x2c0 >  #define BTN_TRIGGER_HAPPY2             0x2c1