Skip to content

Commit b9b37fc

Browse files
committed
kbleds: Replace magic with driver_name
Since the commit 5052df99d3bc ("tty: remove TTY_DRIVER_MAGIC") [1], the magic field no longer exists in the tty_driver. Instead of printing the magic field, use the driver_name field. [1] https://lore.kernel.org/linux-doc/20220907231109.htnfxzmr6wkuhn2v@tarta.nabijaczleweli.xyz/ Close #216 Close #217
1 parent 8172c03 commit b9b37fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/kbleds.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ static int __init kbleds_init(void)
6161
pr_info("kbleds: finished scanning consoles\n");
6262

6363
my_driver = vc_cons[fg_console].d->port.tty->driver;
64-
pr_info("kbleds: tty driver magic %x\n", my_driver->magic);
64+
pr_info("kbleds: tty driver name %s\n", my_driver->driver_name);
6565

6666
/* Set up the LED blink timer the first time. */
6767
timer_setup(&my_timer, my_timer_func, 0);

0 commit comments

Comments
 (0)