diff options
author | Alan Cox <alan@redhat.com> | 2008-07-16 16:53:50 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-20 20:12:35 -0400 |
commit | df4f4dd429870f435f8d5d9d561db029a29f063b (patch) | |
tree | 5e33106f5e5fc4c530170087d3151c13659fad1f /drivers/serial/jsm | |
parent | 6f67048cd010afe19d79d821f16055d9c704c6f0 (diff) |
serial: use tty_port
Switch the serial_core based drivers to use the new tty_port structure.
We can't quite use all of it yet because of the dynamically allocated
extras in the serial_core layer.
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/serial/jsm')
-rw-r--r-- | drivers/serial/jsm/jsm_neo.c | 2 | ||||
-rw-r--r-- | drivers/serial/jsm/jsm_tty.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/drivers/serial/jsm/jsm_neo.c b/drivers/serial/jsm/jsm_neo.c index b2d6f5b1a7c2..b7584ca55ade 100644 --- a/drivers/serial/jsm/jsm_neo.c +++ b/drivers/serial/jsm/jsm_neo.c | |||
@@ -998,7 +998,7 @@ static void neo_param(struct jsm_channel *ch) | |||
998 | { 50, B50 }, | 998 | { 50, B50 }, |
999 | }; | 999 | }; |
1000 | 1000 | ||
1001 | cflag = C_BAUD(ch->uart_port.info->tty); | 1001 | cflag = C_BAUD(ch->uart_port.info->port.tty); |
1002 | baud = 9600; | 1002 | baud = 9600; |
1003 | for (i = 0; i < ARRAY_SIZE(baud_rates); i++) { | 1003 | for (i = 0; i < ARRAY_SIZE(baud_rates); i++) { |
1004 | if (baud_rates[i].cflag == cflag) { | 1004 | if (baud_rates[i].cflag == cflag) { |
diff --git a/drivers/serial/jsm/jsm_tty.c b/drivers/serial/jsm/jsm_tty.c index 94ec66372508..a697914ae3d0 100644 --- a/drivers/serial/jsm/jsm_tty.c +++ b/drivers/serial/jsm/jsm_tty.c | |||
@@ -145,7 +145,7 @@ static void jsm_tty_send_xchar(struct uart_port *port, char ch) | |||
145 | struct ktermios *termios; | 145 | struct ktermios *termios; |
146 | 146 | ||
147 | spin_lock_irqsave(&port->lock, lock_flags); | 147 | spin_lock_irqsave(&port->lock, lock_flags); |
148 | termios = port->info->tty->termios; | 148 | termios = port->info->port.tty->termios; |
149 | if (ch == termios->c_cc[VSTART]) | 149 | if (ch == termios->c_cc[VSTART]) |
150 | channel->ch_bd->bd_ops->send_start_character(channel); | 150 | channel->ch_bd->bd_ops->send_start_character(channel); |
151 | 151 | ||
@@ -239,7 +239,7 @@ static int jsm_tty_open(struct uart_port *port) | |||
239 | channel->ch_cached_lsr = 0; | 239 | channel->ch_cached_lsr = 0; |
240 | channel->ch_stops_sent = 0; | 240 | channel->ch_stops_sent = 0; |
241 | 241 | ||
242 | termios = port->info->tty->termios; | 242 | termios = port->info->port.tty->termios; |
243 | channel->ch_c_cflag = termios->c_cflag; | 243 | channel->ch_c_cflag = termios->c_cflag; |
244 | channel->ch_c_iflag = termios->c_iflag; | 244 | channel->ch_c_iflag = termios->c_iflag; |
245 | channel->ch_c_oflag = termios->c_oflag; | 245 | channel->ch_c_oflag = termios->c_oflag; |
@@ -272,7 +272,7 @@ static void jsm_tty_close(struct uart_port *port) | |||
272 | jsm_printk(CLOSE, INFO, &channel->ch_bd->pci_dev, "start\n"); | 272 | jsm_printk(CLOSE, INFO, &channel->ch_bd->pci_dev, "start\n"); |
273 | 273 | ||
274 | bd = channel->ch_bd; | 274 | bd = channel->ch_bd; |
275 | ts = channel->uart_port.info->tty->termios; | 275 | ts = channel->uart_port.info->port.tty->termios; |
276 | 276 | ||
277 | channel->ch_flags &= ~(CH_STOPI); | 277 | channel->ch_flags &= ~(CH_STOPI); |
278 | 278 | ||
@@ -515,7 +515,7 @@ void jsm_input(struct jsm_channel *ch) | |||
515 | if (!ch) | 515 | if (!ch) |
516 | return; | 516 | return; |
517 | 517 | ||
518 | tp = ch->uart_port.info->tty; | 518 | tp = ch->uart_port.info->port.tty; |
519 | 519 | ||
520 | bd = ch->ch_bd; | 520 | bd = ch->ch_bd; |
521 | if(!bd) | 521 | if(!bd) |