serial8250: Coding style
PATCH 1/1 serial8250: Coding style
Signed-off-by Alan Cox <[email protected]>
drivers/serial/8250.c +10 -9
@@ -305,7 +305,7 @@return au_io_out_map[offset]; } -#elif defined (CONFIG_SERIAL_8250_RM9K ) +#elif defined(CONFIG_SERIAL_8250_RM9K )static const u8 regmap_in[8] = {
@@ -475,7 +475,7 @@serial_outp (up,UART_DLM , value >>8 &0xff ); } -#if defined (CONFIG_SERIAL_8250_AU1X00 ) +#if defined(CONFIG_SERIAL_8250_AU1X00 )/* Au1x00 haven't got a standard divisor latch */ static int serial_dl_read (struct uart_8250_port *up) {
@@ -492,7 +492,7 @@ else_serial_dl_write (up ,value ); } -#elif defined (CONFIG_SERIAL_8250_RM9K ) +#elif defined(CONFIG_SERIAL_8250_RM9K )static int serial_dl_read (struct uart_8250_port *up) { return (up->port.iotype == UPIO_RM9000) ?
@@ -1185,8 +1185,8 @@ irqs =probe_irq_on ();serial_outp (up,UART_MCR ,0 ); -udelay (10 ); -if (up->port.flags &UPF_FOURPORT ) { +udelay (10 ); +if (up->port.flags &UPF_FOURPORT ) {serial_outp (up,UART_MCR ,UART_MCR_DTR |UART_MCR_RTS ); }else {
@@ -1199,7 +1199,7 @@ (void )serial_inp (up,UART_IIR ); (void )serial_inp (up,UART_MSR );serial_outp (up,UART_TX ,0xFF ); -udelay (20 ); +udelay (20 ); irq =probe_irq_off (irqs);serial_outp (up,UART_MCR , save_mcr);
@@ -1343,7 +1343,7 @@uart_insert_char (&up->port, lsr,UART_LSR_OE , ch, flag); - ignore_char: +ignore_char: lsr =serial_inp (up,UART_LSR ); }while ((lsr &UART_LSR_DR ) && (max_count-- >0 ));spin_unlock (&up->port.lock);
@@ -1633,7 +1633,8 @@serial_out (up,UART_IER , ier);/* Standard timer interval plus 0.2s to keep the port running */ -mod_timer (&up->timer, jiffies +poll_timeout (up->port.timeout) +HZ /5 ); +mod_timer (&up->timer, + jiffies +poll_timeout (up->port.timeout) +HZ /5 ); }static unsigned int serial8250_tx_empty (struct uart_port *port)
@@ -1844,7 +1845,7 @@ up->timer.function = serial8250_backup_timeout; up->timer.data = (unsigned long )up;mod_timer (&up->timer, jiffies + -poll_timeout (up->port.timeout) +HZ /5 ); +poll_timeout (up->port.timeout) +HZ /5 ); } }