Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp473349yba; Wed, 15 May 2019 04:46:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqwokCrqrgpyIQqEoHjIPK2cTW6m2U2LnzLbI+9K7MEdyiiaK0wE7UZHTwZux+KO4o/bxLkK X-Received: by 2002:a63:f212:: with SMTP id v18mr40663931pgh.231.1557920765072; Wed, 15 May 2019 04:46:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557920765; cv=none; d=google.com; s=arc-20160816; b=vhGWkjVUF8WGY3LK7nd0qGzldncWqbTRpv5nEysnzKgvtUf20SVXnymkqMGKH6x5b+ V9U5k9ICrd2r9twTEQ8xNEH4mMRUvm1M+WOqrck+WmucXrJlB7y5wJ3KYm0hKQKHnJN9 bKWY/zvZZN9rSMEBuQA8g1AtUVGHb5JfnDWlg01kRT4Zxg+lPdfMS2rM22ZoSG+yHVVt zlhrcTTdX08Nz/XtyeEsjauCJoYj+i/5iEuvuZnkzerLMVd8bGPUJhZIubD8kMBDEgDz u/K+tMjMgtS5DWJiFzyWuqUOea0a8qJycCgRWtdYk8nUKWLnxvh/yG3jp3tW7fycsDwT 6gKw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=KpJUm0gqpYZJspmCR3JHyymmwpmzaB6KcuiXS5OP8Bg=; b=R6VhsFgsZ2k1Tl/qOJpl/X6ZuSok3s0PDrcxjhj7rcim5WDy26Od0KlDrmEbz1G7Hj 9gpwERRVa8kyqIu4qCVnWwxUk+uxEejcRUez9d5ojXyZDG4WVGKa9TXp/xV8+/d6xGjS n6HleJuV3lHYCWFdRyqyGMuZG5LvN3qHtn+m1bDe1bHnmh7D5/11jtFkvYDraGkncipi gFXtwG2/llmyjrwVljJp5JxD59yVWuHuOPKDmgU0gapsy+W+thjrJz7rMWvpv4PgBwH9 +LPxVMUeptqREOFvtFpo+FRC3pu3vlamKmfX9ZScoBWneAug+e7d+K9zxcYhPU001xLu 1oBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=lh9e3ERr; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 76si1601839pgf.582.2019.05.15.04.45.49; Wed, 15 May 2019 04:46:05 -0700 (PDT) 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=@kernel.org header.s=default header.b=lh9e3ERr; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732186AbfEOLoq (ORCPT + 99 others); Wed, 15 May 2019 07:44:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:37218 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732139AbfEOL0X (ORCPT ); Wed, 15 May 2019 07:26:23 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C6CBB20818; Wed, 15 May 2019 11:26:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557919583; bh=bBVkt7ke+7BX2VBGJQpe2SV4R2dH9B1EORuNlsATUiA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lh9e3ERrEPgkt+2My3HORAscAd+zNq620WN/UZmOcg4/69tCn0J9tou9WHeZXvfRY hO2XUay2vVdRwt2WmTHI62eA4L/MLFz5AdeIs9m1QOWkXfhQsKQPRMTTfLO3LjM+x5 LomzdgnDneqaOcA1Zj7lKPaYC6E+Dr0X2QJ1APkU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dmitry Torokhov , Sasha Levin Subject: [PATCH 5.0 017/137] HID: input: add mapping for keyboard Brightness Up/Down/Toggle keys Date: Wed, 15 May 2019 12:54:58 +0200 Message-Id: <20190515090654.564437644@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190515090651.633556783@linuxfoundation.org> References: <20190515090651.633556783@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit 7975a1d6a7afeb3eb61c971a153d24dd8fa032f3 ] 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 Signed-off-by: Sasha Levin --- 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 468da6f6765db..290efac7e6bfd 100644 --- a/drivers/hid/hid-input.c +++ b/drivers/hid/hid-input.c @@ -908,6 +908,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