summaryrefslogtreecommitdiffstats
path: root/drivers/tty/vt
diff options
context:
space:
mode:
authorJiri Slaby (SUSE) <jirislaby@kernel.org>2024-02-02 07:55:49 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-02-06 14:37:37 +0000
commit69b2c2693ad83be07863102b12e7a36711e3e678 (patch)
tree41d236e541b122aaf8289970345e96d6ffe98eed /drivers/tty/vt
parent608053e1944edce7e301112457de89025efa9db1 (diff)
downloadlinux-stable-69b2c2693ad83be07863102b12e7a36711e3e678.tar.gz
linux-stable-69b2c2693ad83be07863102b12e7a36711e3e678.tar.bz2
linux-stable-69b2c2693ad83be07863102b12e7a36711e3e678.zip
tty: vt: rename set_mode() to csi_hl()
It's how the other CSI handling functions are named, so unify to that. Signed-off-by: "Jiri Slaby (SUSE)" <jirislaby@kernel.org> Link: https://lore.kernel.org/r/20240202065608.14019-4-jirislaby@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/vt')
-rw-r--r--drivers/tty/vt/vt.c6
1 files 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) {