diff options
Diffstat (limited to 'drivers/char/epca.c')
-rw-r--r-- | drivers/char/epca.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/char/epca.c b/drivers/char/epca.c index cf2461d34e5..da2d2cf16f5 100644 --- a/drivers/char/epca.c +++ b/drivers/char/epca.c | |||
@@ -392,7 +392,7 @@ static struct channel *verifyChannel(struct tty_struct *tty) | |||
392 | * through tty->driver_data this should catch it. | 392 | * through tty->driver_data this should catch it. |
393 | */ | 393 | */ |
394 | if (tty) { | 394 | if (tty) { |
395 | struct channel *ch = (struct channel *)tty->driver_data; | 395 | struct channel *ch = tty->driver_data; |
396 | if (ch >= &digi_channels[0] && ch < &digi_channels[nbdevs]) { | 396 | if (ch >= &digi_channels[0] && ch < &digi_channels[nbdevs]) { |
397 | if (ch->magic == EPCA_MAGIC) | 397 | if (ch->magic == EPCA_MAGIC) |
398 | return ch; | 398 | return ch; |
@@ -2097,7 +2097,7 @@ static int info_ioctl(struct tty_struct *tty, struct file *file, | |||
2097 | 2097 | ||
2098 | static int pc_tiocmget(struct tty_struct *tty, struct file *file) | 2098 | static int pc_tiocmget(struct tty_struct *tty, struct file *file) |
2099 | { | 2099 | { |
2100 | struct channel *ch = (struct channel *) tty->driver_data; | 2100 | struct channel *ch = tty->driver_data; |
2101 | struct board_chan __iomem *bc; | 2101 | struct board_chan __iomem *bc; |
2102 | unsigned int mstat, mflag = 0; | 2102 | unsigned int mstat, mflag = 0; |
2103 | unsigned long flags; | 2103 | unsigned long flags; |
@@ -2131,7 +2131,7 @@ static int pc_tiocmget(struct tty_struct *tty, struct file *file) | |||
2131 | static int pc_tiocmset(struct tty_struct *tty, struct file *file, | 2131 | static int pc_tiocmset(struct tty_struct *tty, struct file *file, |
2132 | unsigned int set, unsigned int clear) | 2132 | unsigned int set, unsigned int clear) |
2133 | { | 2133 | { |
2134 | struct channel *ch = (struct channel *) tty->driver_data; | 2134 | struct channel *ch = tty->driver_data; |
2135 | unsigned long flags; | 2135 | unsigned long flags; |
2136 | 2136 | ||
2137 | if (!ch) | 2137 | if (!ch) |
@@ -2178,7 +2178,7 @@ static int pc_ioctl(struct tty_struct *tty, struct file *file, | |||
2178 | unsigned int mflag, mstat; | 2178 | unsigned int mflag, mstat; |
2179 | unsigned char startc, stopc; | 2179 | unsigned char startc, stopc; |
2180 | struct board_chan __iomem *bc; | 2180 | struct board_chan __iomem *bc; |
2181 | struct channel *ch = (struct channel *) tty->driver_data; | 2181 | struct channel *ch = tty->driver_data; |
2182 | void __user *argp = (void __user *)arg; | 2182 | void __user *argp = (void __user *)arg; |
2183 | 2183 | ||
2184 | if (ch) | 2184 | if (ch) |
@@ -2473,7 +2473,7 @@ static void pc_unthrottle(struct tty_struct *tty) | |||
2473 | 2473 | ||
2474 | static int pc_send_break(struct tty_struct *tty, int msec) | 2474 | static int pc_send_break(struct tty_struct *tty, int msec) |
2475 | { | 2475 | { |
2476 | struct channel *ch = (struct channel *) tty->driver_data; | 2476 | struct channel *ch = tty->driver_data; |
2477 | unsigned long flags; | 2477 | unsigned long flags; |
2478 | 2478 | ||
2479 | if (msec == -1) | 2479 | if (msec == -1) |