Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3698744imu; Fri, 18 Jan 2019 15:32:29 -0800 (PST) X-Google-Smtp-Source: ALg8bN50XaxP38W26yKmAi+uS1T7KF7dkJ67Bw3E5+JsHWXekWuJy2IjE9K0UXPzBTghE80N3wDx X-Received: by 2002:a65:4b82:: with SMTP id t2mr19754315pgq.189.1547854349275; Fri, 18 Jan 2019 15:32:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547854349; cv=none; d=google.com; s=arc-20160816; b=HDX5UGCdpZsegPGTb6tsC+QqAZHiSswMgS3jpux4+p22iyEfP4EngFhf27+P/t8L1M 5+PSe5O8MY1/xGyV86FA9J9W5L+/hU1NXyPV4Qc1Gv+H9Unz7jN7y3Vk7KyQswgug2/b 68WKEpzLhcer8b6xPsyuqzlh6OP3AWNuc2QjXdlY9YLgHYtB/PMrNVjOmDlRM3KTny3x JuQxJtA7IKBLvYJXbeOXBXA+ueIUEKxg2sQjfaTUSR4ZgPpmC/NmFk+d6mdX7KBri6rr taRDF6V/fp9gb4nn61s/m9n46nzpz7LRLkyd2fATABlBnCySIpOWq4AAAzaF22y6D2fN OjlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ldH8+mC8u22aK1nS5Q+1DGD8yOUPj+mC0pR+mip+tQo=; b=Q84eKGtNkee2Kjp+wIojEvoVwXMazuFQB4e4+eMZCGBAZ/puysHfEBtGYS/SNSNEnc HAHgVnp54MRtpFQJ4BF5c7RBSxdUQCfuy0gLBeMWEQ3lol8eS84AHqNTXKLXAvo11xJt vHfsugGG+Pw5fwVomjNOkd4y9yvrZbiYJoqD7WSkHAnVNbjirEq2lGiNh3ids9EvVqiv fwDSPV6k6KyLLRW+xuwIQLhPAELyFa+zhNBbGS7HmipicmU+M2JA/MSLgcib5lpq3ATJ XksajKGJr08n892g6othIh/QLe0V5G2r9jxK7Kt/eYDn55+wDIeBctErwJYNe4lKPwsJ aadA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dWxgfNZM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d10si5421805pls.170.2019.01.18.15.32.13; Fri, 18 Jan 2019 15:32:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dWxgfNZM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1730255AbfARXa4 (ORCPT + 99 others); Fri, 18 Jan 2019 18:30:56 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:42798 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730192AbfARXap (ORCPT ); Fri, 18 Jan 2019 18:30:45 -0500 Received: by mail-pl1-f194.google.com with SMTP id y1so6985784plp.9; Fri, 18 Jan 2019 15:30:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ldH8+mC8u22aK1nS5Q+1DGD8yOUPj+mC0pR+mip+tQo=; b=dWxgfNZMXrjv+1tdVjSv5pSXxBfEjSZY+bPioJnEyANWx/NpxFRjuL7FAAdPGE9g1s ++mIdpro9b93CVhZhD6agaxSaWTby6/Guyy5ehPFR0/Qqs1Nz9vitywy9UMtkQ4M5M+P bxj4s5Wc5rqMw+s0o1+VzsHmMe58ovtIYRkaK6GRkUb/KxDtNgSd9aAegl8k9qA4Ae/P j4fueiami+641sbci6sCjyP4oT7iroxAfUc+gu+ruZNOp+l/4XpYtay/HZS4zipvYTYn s9fGQDsL/Awwzm3VO1AanlgiZrsxo5+lesyWzKdRMvZJpakFYqtnau2w3Xvrc5Ot3cva /xIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ldH8+mC8u22aK1nS5Q+1DGD8yOUPj+mC0pR+mip+tQo=; b=f1T9qEjOJ3ImZ8D9pNYS7GBYGgWB6yF6AZz/S3MqnN1tB3YO8X1yLeYozCBYIAVkSX GHy0LtEtLpAqzl7RZjVuj67f1lnKMkE37NBd/pZ+SJaXP+aXA5aBxcd7wuI8DtcpSIkZ 9mYx1lLNiF21fYW9VguhCQKJxzt6y+oAmWUR0T48aFJw+y/qPbV26+3vvvvTf38smZjq sh0I5hl1Nuc/DFNpw53EOTI2zbLrHTe0p4bZNs6/qtOA0dnMOAvnZo/TqDufEZdhmUFY at5S7+om/vbgmszClhNiDoMMYdzooRokkl3R0FSoEVNwMjSa9P4TC9Hcn0aefrhRbO6e bl7w== X-Gm-Message-State: AJcUukcPXl8qNInc9aCXupa1H4FhvmLwFayD5PkSpPU5lTXAzRRioRCU ysnOKB53l9FvyUIfCSErLoY= X-Received: by 2002:a17:902:7443:: with SMTP id e3mr21087999plt.304.1547854244121; Fri, 18 Jan 2019 15:30:44 -0800 (PST) Received: from dtor-ws.mtv.corp.google.com ([2620:15c:202:201:3adc:b08c:7acc:b325]) by smtp.gmail.com with ESMTPSA id f6sm11857163pfg.188.2019.01.18.15.30.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Jan 2019 15:30:43 -0800 (PST) From: Dmitry Torokhov To: Jiri Kosina , Benjamin Tissoires Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/7] HID: input: add mapping for keyboard Brightness Up/Down/Toggle keys Date: Fri, 18 Jan 2019 15:30:35 -0800 Message-Id: <20190118233037.87318-5-dmitry.torokhov@gmail.com> X-Mailer: git-send-email 2.20.1.321.g9e740568ce-goog In-Reply-To: <20190118233037.87318-1-dmitry.torokhov@gmail.com> References: <20190118233037.87318-1-dmitry.torokhov@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org According to HUTRR73 usages 0x79, 0x7a and 0x7c from the consumer page correspond to Brightness Up/Down/Toggle keys, so let's add the mappings. Signed-off-by: Dmitry Torokhov --- This can be applied independently. drivers/hid/hid-input.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c index 5f800e7b04f2..cebe8a8cce2e 100644 --- a/drivers/hid/hid-input.c +++ b/drivers/hid/hid-input.c @@ -900,6 +900,10 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel case 0x074: map_key_clear(KEY_BRIGHTNESS_MAX); break; case 0x075: map_key_clear(KEY_BRIGHTNESS_AUTO); break; + case 0x079: map_key_clear(KEY_KBDILLUMUP); break; + case 0x07a: map_key_clear(KEY_KBDILLUMDOWN); break; + case 0x07c: map_key_clear(KEY_KBDILLUMTOGGLE); break; + case 0x082: map_key_clear(KEY_VIDEO_NEXT); break; case 0x083: map_key_clear(KEY_LAST); break; case 0x084: map_key_clear(KEY_ENTER); break; -- 2.20.1.321.g9e740568ce-goog