summaryrefslogtreecommitdiff
path: root/drivers/char/ip2main.c
diff options
context:
space:
mode:
authorAlexander Viro <viro@www.linux.org.uk>2003-04-23 04:18:59 -0700
committerChristoph Hellwig <hch@lst.de>2003-04-23 04:18:59 -0700
commit345127472f366d63f50fdf29b9dd84e70a084bd7 (patch)
treee1f47d76d696923a8c1d8baa05e75f97748fda56 /drivers/char/ip2main.c
parent07462df3687e6a58846911460f4f4833fbe3d587 (diff)
[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.
Diffstat (limited to 'drivers/char/ip2main.c')
-rw-r--r--drivers/char/ip2main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/char/ip2main.c b/drivers/char/ip2main.c
index aa417bd7ca3a..c601cd743ed6 100644
--- a/drivers/char/ip2main.c
+++ b/drivers/char/ip2main.c
@@ -1564,9 +1564,9 @@ ip2_open( PTTY tty, struct file *pFile )
wait_queue_t wait;
int rc = 0;
int do_clocal = 0;
- i2ChanStrPtr pCh = DevTable[minor(tty->device)];
+ i2ChanStrPtr pCh = DevTable[tty->index];
- ip2trace (minor(tty->device), ITRC_OPEN, ITRC_ENTER, 0 );
+ ip2trace (tty->index, ITRC_OPEN, ITRC_ENTER, 0 );
if ( pCh == NULL ) {
return -ENODEV;
@@ -2179,7 +2179,7 @@ ip2_unthrottle ( PTTY tty )
static void
ip2_start ( PTTY tty )
{
- i2ChanStrPtr pCh = DevTable[minor(tty->device)];
+ i2ChanStrPtr pCh = DevTable[tty->index];
i2QueueCommands(PTYPE_BYPASS, pCh, 0, 1, CMD_RESUME);
i2QueueCommands(PTYPE_BYPASS, pCh, 100, 1, CMD_UNSUSPEND);
@@ -2192,7 +2192,7 @@ ip2_start ( PTTY tty )
static void
ip2_stop ( PTTY tty )
{
- i2ChanStrPtr pCh = DevTable[minor(tty->device)];
+ i2ChanStrPtr pCh = DevTable[tty->index];
i2QueueCommands(PTYPE_BYPASS, pCh, 100, 1, CMD_SUSPEND);
#ifdef IP2DEBUG_WRITE
@@ -2220,7 +2220,7 @@ static int
ip2_ioctl ( PTTY tty, struct file *pFile, UINT cmd, ULONG arg )
{
wait_queue_t wait;
- i2ChanStrPtr pCh = DevTable[minor(tty->device)];
+ i2ChanStrPtr pCh = DevTable[tty->index];
struct async_icount cprev, cnow; /* kernel counter temps */
struct serial_icounter_struct *p_cuser; /* user space */
int rc = 0;