From 345127472f366d63f50fdf29b9dd84e70a084bd7 Mon Sep 17 00:00:00 2001 From: Alexander Viro Date: Wed, 23 Apr 2003 04:18:59 -0700 Subject: [PATCH] tty cleanups (6/12) tty->tty_index added; we initialize it with minor(tty->device) - tty->driver->minor_start. Majority of remaining tty->device uses had that form and are switched to use of tty->index. --- include/linux/tty.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/linux/tty.h b/include/linux/tty.h index f48a081bf8cb..de633b4b551b 100644 --- a/include/linux/tty.h +++ b/include/linux/tty.h @@ -260,6 +260,7 @@ struct tty_flip_buffer { struct tty_struct { int magic; struct tty_driver *driver; + int index; struct tty_ldisc ldisc; struct termios *termios, *termios_locked; char name[64]; -- cgit v1.2.3