Skip to contentSkip to conversation

s390/sclp_con: delete unused macros and standardize the name

PATCH New Xose Vazquez Perez 1 participant 1 message Jul 9, 2025 s390

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 s390/sclp_con: delete unused macros and standardize the name

- delete sclp_console_major and sclp_console_minor, unused.
- standardize macro name, from sclp_console_name to SCLP_TTY_CONSOLE_NAME

Cc Heiko Carstens <[email protected]> (maintainer:S390 ARCHITECTURE,commit_signer:1/2=50%)
Cc Vasily Gorbik <[email protected]> (maintainer:S390 ARCHITECTURE)
Cc Alexander Gordeev <[email protected]> (maintainer:S390 ARCHITECTURE)
Cc Christian Borntraeger <[email protected]> (reviewer:S390 ARCHITECTURE)
Cc Sven Schnelle <[email protected]> (reviewer:S390 ARCHITECTURE,commit_signer:1/2=50%)
Cc S390 ML <[email protected]> (open list:S390 ARCHITECTURE

---
Trivial, but uncompiled!!

---
 drivers/s390/char/sclp_con.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/s390/char/sclp_con.c +2 -4
index d8544c485808..17d7d0f0fc64 100644
@@ -22,9 +22,7 @@
 #include "sclp_rw.h"
 #include "sclp_tty.h"
 
-#define sclp_console_major 4		/* TTYAUX_MAJOR */
-#define sclp_console_minor 64
-#define sclp_console_name  "ttyS"
+#define SCLP_TTY_CONSOLE_NAME	"ttyS"
 
 /* Lock to guard over changes to global variables */
 static DEFINE_SPINLOCK(sclp_con_lock);
@@ -256,7 +254,7 @@ static struct notifier_block on_reboot_nb = {
  */
 static struct console sclp_console =
 {
-	.name = sclp_console_name,
+	.name = SCLP_TTY_CONSOLE_NAME,
 	.write = sclp_console_write,
 	.device = sclp_console_device,
 	.flags = CON_PRINTBUFFER,
Signature · 1 line
2.50.0