Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp1813877pxb; Fri, 18 Feb 2022 16:28:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJyiBuVsamYGp2BqB/J+62WwNE6gqeAfoPUfWVAT/56Ko3/7/t8hc8DWqwYMoJi7TY0xCfzA X-Received: by 2002:a17:906:8a58:b0:6ce:b104:6af5 with SMTP id gx24-20020a1709068a5800b006ceb1046af5mr8380212ejc.732.1645230531455; Fri, 18 Feb 2022 16:28:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645230531; cv=none; d=google.com; s=arc-20160816; b=l46whKt2oC4LbgyZoYu3oCfEvX0Elxu1iK7qK0tCdIEldfI6DlOQKKY7t0iPRk6ZQb vSzGYotne5TRZb5NyvX/XCbR3h2eK1PoNGTSscTVzgMPRBfLkLvGaNWjnfL8eK654fFu N4fPOlRRVvEFJyeekbQ/uQS5LL1h4mJnETnT7fUHHe0YsTdIlpMuk25qPyDcJ6cAQ7Ld xnWikKgvAnjMjp6DKHFkF+XX5lNUWhSpoln8o9xJd1aDuwhUODhp1tdGFNoFhQ7x+mJL 99NK5ZbcBQEZELIYjMGMoRhgoSeqj3/VVr6GTwQqLEcX1hko+eHPnRiJyH0+BaUiobpL vSzg== 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=FZsLTrBtK3TIKi6znBawoZ+YQgveHVMJBjVViZ+ZI9I=; b=TIxVUJJ4x3RJCR7gKZL+ThnN0DOI92H3/pqBAo9lFZg8iHmXDnX5+Inqc4JArPdCRa mp+5kKEdAIvNvRvtVV8wMMrYh0+Gj03xBXXiV6sR4jYSjxcWrMEibAm1bLvgFWyOBaf7 6WbDhe5KMFx9jsjhQjkUCxGnnLJfs9tjyLJU6NhUCi9v8DhJDCKRDSnOzWuQUJCA6mvL qVMN6aPECJLslw8UHxIShSNaIKBXB9M1olHow7wro3OFPzsOVK4WX7+rJ5pn0zRk8ple mCE/6SlMjdEw2gB4OKczDKqeU3Oa+/3yFrVkr46CWXvudhy5Tp02BdRKXefulQEwngSB Ge7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ocTW4xYV; 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 bc10si6564467edb.49.2022.02.18.16.28.26; Fri, 18 Feb 2022 16:28:51 -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=ocTW4xYV; 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 S240171AbiBRXgP (ORCPT + 99 others); Fri, 18 Feb 2022 18:36:15 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:37844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235291AbiBRXgO (ORCPT ); Fri, 18 Feb 2022 18:36:14 -0500 Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com [IPv6:2607:f8b0:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DEA3523088C for ; Fri, 18 Feb 2022 15:35:56 -0800 (PST) Received: by mail-pg1-x532.google.com with SMTP id 195so9121367pgc.6 for ; Fri, 18 Feb 2022 15:35:56 -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=FZsLTrBtK3TIKi6znBawoZ+YQgveHVMJBjVViZ+ZI9I=; b=ocTW4xYVtEUiFTHfgGa+DOZ3/hoX+WD3Wf1H9QiD5tNx13dO4c3aByIXRRfjIIw26T ec/0nrFthMMRbJVd+vUeV9kFC/Qb8/iaklFLAnfJOcSWpOIcyLpAs7hhwIeYqa8zJbRE tn8pgie1KedOUPI9ejghACw/hdQ3HJIaaXV60= 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=FZsLTrBtK3TIKi6znBawoZ+YQgveHVMJBjVViZ+ZI9I=; b=pQW0ObXmW2IXvav5onXu4ab8jhiVcca49vqCvhfuXwVVt09N8vknuPCi88uzsdD/bT qz/XUWq7sB2RvyoTuOLGZeT3vwMzUY5Qxb+sPCZRURPjz5x/G9+h6cRo0aF1XswqScUk Xirmx1nwFE3w+K6oEwlTZsAl2KLVYgSB7H5M52GNCqmb8WtmbF2f1l2n1o5v+WbKwLzn M7NcsYE8GquaLJ3aqb4fW3yJ2xR67EMYNHrm21MrIf7NBwuhI3CgJoaLnroFWDDZ4+0v dZus5nv7fGgbeMMKYRtlTc2B0sL4ZF489obYeJJb/Iq4HoxxBljJiMZM/EkPUvASS17+ QC7A== X-Gm-Message-State: AOAM5310eWgrr2USod7l7kzMk5jdjWAm3ZO5xrnfcqTfmzF10j1jYxDO oipgIxN/Gi/7WUyku8lhqkRLzjvvSZx+4Gvw X-Received: by 2002:a05:6a00:c95:b0:4e1:3259:f7ad with SMTP id a21-20020a056a000c9500b004e13259f7admr9717807pfv.43.1645227356208; Fri, 18 Feb 2022 15:35:56 -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 i17sm11967109pgv.8.2022.02.18.15.35.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Feb 2022 15:35:55 -0800 (PST) From: William Mahon X-Google-Original-From: William Mahon To: LKML Cc: William Mahon , Benjamin Tissoires , Dmitry Torokhov , Jiri Kosina , linux-input@vger.kernel.org Subject: [PATCH v2] HID: Add mapping for KEY_ALL_APPLICATIONS Date: Fri, 18 Feb 2022 23:35:49 +0000 Message-Id: <20220218233350.1.I3a7746ad05d270161a18334ae06e3b6db1a1d339@changeid> X-Mailer: git-send-email 2.35.1.473.g83b2b277ed-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 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 which is an alias of KEY_DASHBOARD. It also maps the 0x0c/0x2a2 usage code to KEY_ALL_APPLICATIONS. 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