aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/serial
diff options
context:
space:
mode:
authorAlan Cox <alan@linux.intel.com>2009-09-19 16:13:32 -0400
committerLive-CD User <linux@linux.site>2009-09-19 16:13:32 -0400
commit016af53a6de6837e5be3da68901083ea85ebb4da (patch)
tree9be7a549fcef9fe060b00d406a99b9b7c5319688 /drivers/serial
parentb58d13a0216d4e0753668214f23e1d2c24c30f8c (diff)
serial: kill USF_CLOSING_* definitions
The serial layer for some reason uses different defines for the special case close delays and then conditionally switches to/from the normal ones in the ioctls. Remove this rather pointless abstraction Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/serial')
-rw-r--r--drivers/serial/serial_core.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/serial/serial_core.c b/drivers/serial/serial_core.c
index 3c45a8d7eb7f..69c4e20530f5 100644
--- a/drivers/serial/serial_core.c
+++ b/drivers/serial/serial_core.c
@@ -652,7 +652,7 @@ static int uart_get_info(struct uart_state *state,
652 tmp.xmit_fifo_size = uport->fifosize; 652 tmp.xmit_fifo_size = uport->fifosize;
653 tmp.baud_base = uport->uartclk / 16; 653 tmp.baud_base = uport->uartclk / 16;
654 tmp.close_delay = port->close_delay / 10; 654 tmp.close_delay = port->close_delay / 10;
655 tmp.closing_wait = port->closing_wait == USF_CLOSING_WAIT_NONE ? 655 tmp.closing_wait = port->closing_wait == ASYNC_CLOSING_WAIT_NONE ?
656 ASYNC_CLOSING_WAIT_NONE : 656 ASYNC_CLOSING_WAIT_NONE :
657 port->closing_wait / 10; 657 port->closing_wait / 10;
658 tmp.custom_divisor = uport->custom_divisor; 658 tmp.custom_divisor = uport->custom_divisor;
@@ -690,7 +690,7 @@ static int uart_set_info(struct uart_state *state,
690 new_serial.irq = irq_canonicalize(new_serial.irq); 690 new_serial.irq = irq_canonicalize(new_serial.irq);
691 close_delay = new_serial.close_delay * 10; 691 close_delay = new_serial.close_delay * 10;
692 closing_wait = new_serial.closing_wait == ASYNC_CLOSING_WAIT_NONE ? 692 closing_wait = new_serial.closing_wait == ASYNC_CLOSING_WAIT_NONE ?
693 USF_CLOSING_WAIT_NONE : new_serial.closing_wait * 10; 693 ASYNC_CLOSING_WAIT_NONE : new_serial.closing_wait * 10;
694 694
695 /* 695 /*
696 * This semaphore protects port->count. It is also 696 * This semaphore protects port->count. It is also
@@ -1307,7 +1307,7 @@ static void uart_close(struct tty_struct *tty, struct file *filp)
1307 */ 1307 */
1308 tty->closing = 1; 1308 tty->closing = 1;
1309 1309
1310 if (port->closing_wait != USF_CLOSING_WAIT_NONE) 1310 if (port->closing_wait != ASYNC_CLOSING_WAIT_NONE)
1311 tty_wait_until_sent(tty, msecs_to_jiffies(port->closing_wait)); 1311 tty_wait_until_sent(tty, msecs_to_jiffies(port->closing_wait));
1312 1312
1313 /* 1313 /*