tty: vt: rename setterm_command() to csi_RSB()
authorJiri Slaby (SUSE) <jirislaby@kernel.org>
Fri, 2 Feb 2024 06:55:54 +0000 (07:55 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 6 Feb 2024 14:37:38 +0000 (14:37 +0000)
It follows naming of other similar functions. RSB stands here for Right
Square Bracket as (obviously) ']' cannot be in the function name.

Signed-off-by: "Jiri Slaby (SUSE)" <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20240202065608.14019-9-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/vt.c

index 9db545f305dc3139f7efa5fdaaee47675c9bae30..c072007807e132178a6f0a5b2758d72edb14bf60 100644 (file)
@@ -1969,8 +1969,14 @@ enum CSI_right_square_bracket {
        CSI_RSB_CURSOR_BLINK_INTERVAL           = 16,
 };
 
-/* console_lock is held */
-static void setterm_command(struct vc_data *vc)
+/*
+ * csi_RSB - csi+] (Right Square Bracket) handler
+ *
+ * These are linux console private sequences.
+ *
+ * console_lock is held
+ */
+static void csi_RSB(struct vc_data *vc)
 {
        switch (vc->vc_par[0]) {
        case CSI_RSB_COLOR_FOR_UNDERLINE:
@@ -2549,8 +2555,8 @@ static void do_con_trol(struct tty_struct *tty, struct vc_data *vc, int c)
                case '@':
                        csi_at(vc, vc->vc_par[0]);
                        return;
-               case ']': /* setterm functions */
-                       setterm_command(vc);
+               case ']':
+                       csi_RSB(vc);
                        return;
                }
                return;