Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp24479lqz; Fri, 29 Mar 2024 07:29:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU0UxHfbZTwXeBlCRWDq2VVFLuJNO1vhOPhlv/ZyOLMToMQHP5dyHeyVd4cFuTOBIue1bG551d333MrX4JOkSrJTapz6olIXZpEO7BjTg== X-Google-Smtp-Source: AGHT+IF7r8AJyLy1VmcfD+h3B6eBl9+QETXnN2nZy/VH/FP4YhTm/Ow3ubUmkfDljLTg/QDQre1m X-Received: by 2002:a05:6a00:1482:b0:6e3:c568:47aa with SMTP id v2-20020a056a00148200b006e3c56847aamr2966318pfu.24.1711722597309; Fri, 29 Mar 2024 07:29:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711722597; cv=pass; d=google.com; s=arc-20160816; b=X5Id8C8ONiDaIcx5Sgbq/XXHjBCvL+eWufXDxNS3GuPcpdAw2u1cCN0MRiJerjUgs8 MmIAt6xm81FJTeImsgn9wEJEJJkWJWVUu7H8ovNSagQAs8uiTq4730ZYSaq+pPqNlqnB qQxT/E1j6D0+K66ULC14PIJtNN/PPLDQvVEi2ABZRDFDr33inWkoI1Ui+/ZeX9pCdIeH Gv5YbwDLQ+7oysBmR8c4QnFnnnXd0mvmbPYCzzYfni4YwHMOmfyecbGVn+xLnl51mfwR FeNLCI/Qy4W/BQMtaMOAPQUoNlSZnIyW1U5eFw5l0rfgucjj0xHCjSTTBy4XgVUk06dv Zisg== 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=iLkaraGphmRvJSx3N4Sv341u+GV8YSwC9Mzz+TMzj2U=; fh=V9eYHnvUJujb51z4M7O8XHydjw9X866K+BW8u5TUk5Y=; b=STZkuf2bCWns9zLWnnhncEdSRDp8yJtyqJweqf8e5SR56P6PbemaWH7C0BbTYtzPZS +BteBqWX0fclKJ46nX0NkqML/SlEooqPbLnBCdQAVFBeS3vKvARj8tJsQ3tWuF8YYWkL MTXfy6OloL6i7/I+eGj3I2Cvbb9j1U5dg5f3bYmJgj+c/0EvpcnLDpZTA2SZNb90F0uz gYeBFF5bb1tNYYIFKzqLiyX+CNdgBqGbNfk59rqN0UK5uIM5C8AHOc4j+mLN8/UFPSJO 07VZ1McmjF3OC80bLW+kfZeZHDt6IoWZgtML+f78xkf+38RHw/azR0lCZrxfTqI/2Bon jWyw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jUi+uZNN; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-124932-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124932-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id le18-20020a056a004fd200b006eabb46c931si3871443pfb.8.2024.03.29.07.29.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 07:29:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-124932-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jUi+uZNN; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-124932-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124932-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 F3A37283DDD for ; Fri, 29 Mar 2024 14:29:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 07B6916C63B; Fri, 29 Mar 2024 12:47:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jUi+uZNN" 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 228BC16C61E; Fri, 29 Mar 2024 12:47:28 +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=1711716448; cv=none; b=AqEdQoBqeVe8A8eukhqqHFhrAQa0WK+4DTFV3N7oR5dRGvcQLxNUrmpBE2BZrSH/KhuQWZKuL/1ngtjSJKXzZ1GRIBERtpWI3WMYGfdFASjcEvMdB2o13H3u/I4Ke+17a7/TUw3blnaQYQIb0Y3oMpdY9I8k0nxdtziTawFnGn4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711716448; c=relaxed/simple; bh=3vWNY+6Jbn1vQoAgM5CPPfg0OMJ8I8fB1jHQae5mi7Y=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=O1H/NvzPNMkRDoxRuXCtrBYRPIn1bCxjbtoS9zqn35q15j8k0NhSh2WExypsDJ+gyYMEvoSgsRZChouGE+ZStAxg+lMcFUdzARtNaQyvuM9dYKvu7d4AJQU5pn7/JO29vNJzGuIz+661bC+M8/CILwWpHVey7BsblZcisekgFWA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=jUi+uZNN; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3B2C2C433F1; Fri, 29 Mar 2024 12:47:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711716448; bh=3vWNY+6Jbn1vQoAgM5CPPfg0OMJ8I8fB1jHQae5mi7Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jUi+uZNNGVoo/CScInd5lOpy4hpIcYk1xFqVQDOEQqF0rR9K+XutxwLfbtGpU25Lr fdXi4nhW6QaLrb8vBy3mVFyMMHfXBbnv7+yiAgX254hEurtxctOF9UrsT6VcB5qGBD /3vyCjuBRQbMChk4FJMJsEx958WWw3jf/Wb4vsz2rJ9jmxz14Bwy/apBaM/IlwgWZb fFIuFK90Hyoaz8FT+Hxnj+EBGoK9egf6YIbajllxF5MBlJB7HgxJ8/2jltIwsUCPZC ucJtaMKJoksF3tfT3lr0Y8eEK/YGJ6H2dx/Ez3fvh3bs/z+YOX6sYCqT8Y5dFdG82O Vtt6cwm+6oEtg== 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.1 48/52] Input: allocate keycode for Display refresh rate toggle Date: Fri, 29 Mar 2024 08:45:42 -0400 Message-ID: <20240329124605.3091273-48-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240329124605.3091273-1-sashal@kernel.org> References: <20240329124605.3091273-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.1.83 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 7ad931a329706..1ce8a91349e9f 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