tty: vt: rename set_mode() to csi_hl()
authorJiri Slaby (SUSE) <jirislaby@kernel.org>
Fri, 2 Feb 2024 06:55:49 +0000 (07:55 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 6 Feb 2024 14:37:37 +0000 (14:37 +0000)
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>
drivers/tty/vt/vt.c

index 7b55d87248f8bf3104735afebf55db03db3e67e1..ae333f49790a58aed9fc8d8a0e4dbc2fd09f2392 100644 (file)
@@ -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) {