From patchwork Fri Feb 2 06:55:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Slaby X-Patchwork-Id: 195638 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:9bc1:b0:106:209c:c626 with SMTP id op1csp250805dyc; Thu, 1 Feb 2024 22:57:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IHcgJ/fF72pFIoUOtLCR6gMw+w+T2vzZewSFpjbzbI31KWXo/7RtesobW+iG2KsB1sR4UtZ X-Received: by 2002:a05:6214:2a4d:b0:68c:67aa:c17e with SMTP id jf13-20020a0562142a4d00b0068c67aac17emr8271525qvb.5.1706857040819; Thu, 01 Feb 2024 22:57:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706857040; cv=pass; d=google.com; s=arc-20160816; b=Vf1ce3CS0lJCnnxF7tgWa3lYV8syyrAIsrfSEnUvlb85lmcHf2cRJ1+XDfZb1V8JfF AeJ8sCf9+y6Mvv2Yx8kJhYDKjV1qa9axKckAknLX8ZK2jpDfLC9JkhpGrpl3gTJ6GPxo yWPb5Uep3VQdzu7v0XYf8zUfNyHIhkAbNfmVYcEUHqHMwib71vyOcXjK6rj+VMxi+P4X UZhsTM8LW1WIUY2TEAsoIwRAVIN+dvfm19atUTVZ3xXWSHRlqLoKaMd2cVhxpk1Oxm7j G+7++2son6zA1m4PDwBSc+4tdsyAAgxgSu9s7Cbq+/0XPZ+4FbDe2TOWqy78zaYnuwjt 1PSA== 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=m1bCBJyrL82oediiZkEQtgAMIVyOdcNA9RT5qLRK1rg=; fh=79aNT8SHcDa5PnrH8vQraPKj0WY7RIgSt4IemtXx5TA=; b=MzG7mzMH9QiVEoIyn37Y5pP7i+ciKReIh1zEL6Gf+DXLv1HdRTJoopKROhPam3X2rR /89/0Cy3HvXbBv7ZoakEhM34MPe8hWV6tO/OoYlxQFAJBiMuauFJ2ujYgyLS1XR05H55 QSfdjQQTEg19ddBVoauzfY2AyPTMaqyzzyzm/CLlQTrdFLG3Wo7zs7CTVBi/n39c34ey 5NgSE/RpKYGzjv+XJQlsEbGpGCRq3JVIYYk0uR00J+J/n11FbAIRb+cJEy3zpOER0Jf0 oWh13TzGl0252BXaXiPN6YU2F2s2VOkc01kpvLzoHEgSp159k8dtYYNs9EfN2fO2rMoA DBDA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=puyPq7MW; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-49318-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49318-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCXUnQaONnIhDxcp/ogr5q6OKwYLaRBVv/jfEgLlG21V/tiPYDqiPW55naZNp0TOM5T5tdru/27FUaH72gdeFoeMLBEg7g== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id dr9-20020a05621408e900b006869c9dde0asi1339938qvb.497.2024.02.01.22.57.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 22:57:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49318-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=puyPq7MW; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-49318-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49318-ouuuleilei=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 968D41C23328 for ; Fri, 2 Feb 2024 06:57:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BD031182AF; Fri, 2 Feb 2024 06:56:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="puyPq7MW" 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 EE92D17C79; Fri, 2 Feb 2024 06:56:16 +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=1706856977; cv=none; b=kx65CX4dQlO9gc6xvnmitT9tD5K3lQrINvI43ZEnlhKP+kAhv/I6E6vmid+LoAQYLJOWIJDaVAEOVnRyvV7loEncLP92kswrESsBL21N/14XWrm/gtdutqRad6lq8GewwWnffl09YU2kaGGdakLNrEFaFJ6r2BMHPQx17lTG7iU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706856977; c=relaxed/simple; bh=1ggf9N68+vMUK1jcvrtDR4Sh3DWkqEikyT9dyj3heQ8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=bKEF35J9Tr+WZymZZM4eZVNhq/5BkyX1gcQM3z0QBxUfBJhnanpCQyHeTiMvLrQDxf26e33umeLY0DxfBCpTJKml4F8h3lThpzEBTTsRTZnJSDKl7ltZToFvlPcznhNgLY9cDAjzTEreDz3D1ywhP2Pk+LdkyApgBZbnstLTcK8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=puyPq7MW; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 72FD5C43394; Fri, 2 Feb 2024 06:56:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706856976; bh=1ggf9N68+vMUK1jcvrtDR4Sh3DWkqEikyT9dyj3heQ8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=puyPq7MWSrRarl+OmiFB6rP1PURCFE9fChZXyP29VV50HvdluViBp0absbs22mr8+ +Wg66Mvsn2QD6LeBDPrwKxI2A0bc3Q49W+pdum3o2S7jHgTYcwEe0Zocxx3IMPZ4uo 9lkufuHYBZjnMp18ULpEcVaxREIfCJXYGIGmgab8JCvFmJgktrptZDPSgQPk9Mp5/+ oP4g3NmqhbcF0+RQ/4QG6GuEhD7jyWz0yYzLpqnbXtvjIAnsP3L+0yoyinHHZzjbRD DbimhrdoG0z86nZFOnAZ/LP74NV/SBd8YMnWLMhRglPovbI7HfaP/u+BUBfSxbOUMK AanEK4lgXGe5Q== From: "Jiri Slaby (SUSE)" To: gregkh@linuxfoundation.org Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, "Jiri Slaby (SUSE)" Subject: [PATCH 03/22] tty: vt: rename set_mode() to csi_hl() Date: Fri, 2 Feb 2024 07:55:49 +0100 Message-ID: <20240202065608.14019-4-jirislaby@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240202065608.14019-1-jirislaby@kernel.org> References: <20240202065608.14019-1-jirislaby@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789769328511056598 X-GMAIL-MSGID: 1789769328511056598 It's how the other CSI handling functions are named, so unify to that. Signed-off-by: Jiri Slaby (SUSE) --- drivers/tty/vt/vt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c index 7b55d87248f8..ae333f49790a 100644 --- a/drivers/tty/vt/vt.c +++ b/drivers/tty/vt/vt.c @@ -1881,7 +1881,7 @@ enum { }; /* console_lock is held */ -static void set_mode(struct vc_data *vc, int on_off) +static void csi_hl(struct vc_data *vc, bool on_off) { int i; @@ -2380,11 +2380,11 @@ static void do_con_trol(struct tty_struct *tty, struct vc_data *vc, int c) switch(c) { case 'h': if (vc->vc_priv <= EPdec) - set_mode(vc, 1); + csi_hl(vc, true); return; case 'l': if (vc->vc_priv <= EPdec) - set_mode(vc, 0); + csi_hl(vc, false); return; case 'c': if (vc->vc_priv == EPdec) {