Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp3127lqz; Fri, 29 Mar 2024 06:57:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVYJQLptJpVhoW35d/2iLCg1u4lq1kzDwgcox3NKfu7IW+Faso+otijA2P9Dpr4NRvtFQKSa2nBzfbDbVqhB4yUbKo/7JMojPi71hHaXA== X-Google-Smtp-Source: AGHT+IEr57WpG9QS0iGAxp7E3xNQ0dlck9P9ENHVFJZqohYw5n3Y85BsCoXV+1qdo0chh1WDrO7C X-Received: by 2002:a17:90b:2386:b0:2a2:209b:afe0 with SMTP id mr6-20020a17090b238600b002a2209bafe0mr247042pjb.23.1711720656285; Fri, 29 Mar 2024 06:57:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711720656; cv=pass; d=google.com; s=arc-20160816; b=k/2JbPwxpTFJRtQIH38JSmJYcwGjybHxWjAGPOTkx1BehQK/5DSxHJ1KQwFelddB2W yhs3EDA3zGlq5UCIedi/O3ZzyUSWcjhDv7P8euJcbAYTEDWV9qP1RxisEdzUYQAQakyy zCUWfPX59c2+hVdQyO5WQJSquqKByGQ+HcjIzvymNTN/ofjI+dPFOrvAebNmGRX0JxqM 71+vsT7ueH5Hcy69P78If3A1g/TuxZXktSLD8qejLP7gV7r76jU+TaaW9uruuySuQzRW 7TNv+oxNp4YdydW9HBG7fLxpVcdrihf087BY5f9Nw5G3dpJWGbJPXo7eWdtirQgCuSup 4A1g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=LxB3LzLPCLTxto0H8oq3Zan5Np4rPiBfwri5QiniK5A=; fh=V9eYHnvUJujb51z4M7O8XHydjw9X866K+BW8u5TUk5Y=; b=dpkldb2y/R7LjDEPxyCtYxo7Ca16wsOqQbovM4cVfBilcJZ6/tec6PJy341eJWgPey TdotNvVkppUjRtflbR+gbbbLbrG0RjXCqO6GtrRjcluBCCAnJfU3CIh35ZmoM2bWfX23 PxSm0WZD6HxUIkbWG9Mit4cV5GpCyGJuJVQftXroFyujlaZNuvBtnfMpCxI6KZsVPKtO L+btTxXJF4sftc+xq5N/FwqHRzppKjGV0xm9onYDAvBdHx3JwIOhjbzScOjTcbA4rMny Kk4HyEgekZo0wm666/IRQt18Q0BNbsUciGjOeFMkxf1gFeEkGlqgiu9fkOXP6KTt3oZK jZ2g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="cg/Zb7r1"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-124801-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124801-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id q4-20020a17090a938400b002a028c3b3e3si5829701pjo.73.2024.03.29.06.57.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 06:57:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-124801-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="cg/Zb7r1"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-124801-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124801-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 42256287F9E for ; Fri, 29 Mar 2024 13:55:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B25BC18E0DA; Fri, 29 Mar 2024 12:42:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="cg/Zb7r1" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CF57318E0C8; Fri, 29 Mar 2024 12:42:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711716158; cv=none; b=Uo6jKNWn8bxf47in6OGzFaL4Hangyrnb5dChRdI/BWMrKVeQYgye7mhqV4u1axbZf5OIefx5x1uqeta7kMTfqXBgDtZc2N2+jydFrFa+y5vyuFguehfonWYpbts0D0rwuDqOQ7lcwCl1yvm48oz0oGiPcIMVjvQNKCxUaQzO0i8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711716158; c=relaxed/simple; bh=J4aV3rqyp50JKjX46TX7OZ3Uc8vJrNWVe8jCtSV47bk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=MRuHNPytEJB0TH738DnFxVQJ/hLamnAgK7TTM/mKplhrPPHxJIGa/lmspFOz4S+mr6ctlFqCh7iXzUvOZ8KBWgXHnUkygtRTpluqkjtthTKxIBUhRigq+qv/3nzoEV+uoVjI8dwTKF0+Y1Misg+ejh9lubO6TnXV1xtGJNKwpUI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=cg/Zb7r1; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E66EAC43394; Fri, 29 Mar 2024 12:42:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711716158; bh=J4aV3rqyp50JKjX46TX7OZ3Uc8vJrNWVe8jCtSV47bk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cg/Zb7r1iu3gy43kFFjynK0B5/yjTdYqM6tmzkoCB1miX50n2PUhH0vwKb2M1ViWh O06k7cHEJlTocTin9BZ5GmkWZiLXhno5tacjUHfSelEhZzWZS+8bjr4ZzpFZBKfYqn 1NqIne1CKs6YqNRHyczlN5xRi28PXtdhbfvCgisr9Z+GTGRBBXMkafH/axtX3vAO4p FIm+yaZR2IbzDa3y2jp0kcb1ailjMoIYPurYA9jRf2E6cQly9U/Rd2dpNa1kLHST1A +x2TZL6KPtdUhyRZQk4X+9J4HllF6dJCVrbI52ekAUCLlteL7Q+4HGySEEhAaVwgPW yVg4WNCeGdc/w== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Gergo Koteles , Dmitry Torokhov , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , Sasha Levin , linux-input@vger.kernel.org Subject: [PATCH AUTOSEL 6.8 90/98] Input: allocate keycode for Display refresh rate toggle Date: Fri, 29 Mar 2024 08:38:01 -0400 Message-ID: <20240329123919.3087149-90-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240329123919.3087149-1-sashal@kernel.org> References: <20240329123919.3087149-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.8.2 Content-Transfer-Encoding: 8bit From: Gergo Koteles [ Upstream commit cfeb98b95fff25c442f78a6f616c627bc48a26b7 ] Newer Lenovo Yogas and Legions with 60Hz/90Hz displays send a wmi event when Fn + R is pressed. This is intended for use to switch between the two refresh rates. Allocate a new KEY_REFRESH_RATE_TOGGLE keycode for it. Signed-off-by: Gergo Koteles Acked-by: Dmitry Torokhov Link: https://lore.kernel.org/r/15a5d08c84cf4d7b820de34ebbcf8ae2502fb3ca.1710065750.git.soyer@irl.hu Reviewed-by: Ilpo Järvinen Signed-off-by: Ilpo Järvinen Signed-off-by: Sasha Levin --- include/uapi/linux/input-event-codes.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/input-event-codes.h b/include/uapi/linux/input-event-codes.h index 022a520e31fc2..03edf2ccdf6c8 100644 --- a/include/uapi/linux/input-event-codes.h +++ b/include/uapi/linux/input-event-codes.h @@ -602,6 +602,7 @@ #define KEY_ALS_TOGGLE 0x230 /* Ambient light sensor */ #define KEY_ROTATE_LOCK_TOGGLE 0x231 /* Display rotation lock */ +#define KEY_REFRESH_RATE_TOGGLE 0x232 /* Display refresh rate toggle */ #define KEY_BUTTONCONFIG 0x240 /* AL Button Configuration */ #define KEY_TASKMANAGER 0x241 /* AL Task/Project Manager */ -- 2.43.0