sdio_uart: coding style fixes

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
Thadeu Lima de Souza Cascardo 2009-10-15 16:44:00 -03:00 committed by Jiri Kosina
parent 94e2bd6888
commit 1e04b7ae70
1 changed files with 21 additions and 19 deletions

View File

@ -231,7 +231,8 @@ static unsigned int sdio_uart_get_mctrl(struct sdio_uart_port *port)
return ret; return ret;
} }
static void sdio_uart_write_mctrl(struct sdio_uart_port *port, unsigned int mctrl) static void sdio_uart_write_mctrl(struct sdio_uart_port *port,
unsigned int mctrl)
{ {
unsigned char mcr = 0; unsigned char mcr = 0;
@ -387,7 +388,8 @@ static void sdio_uart_stop_rx(struct sdio_uart_port *port)
sdio_out(port, UART_IER, port->ier); sdio_out(port, UART_IER, port->ier);
} }
static void sdio_uart_receive_chars(struct sdio_uart_port *port, unsigned int *status) static void sdio_uart_receive_chars(struct sdio_uart_port *port,
unsigned int *status)
{ {
struct tty_struct *tty = port->tty; struct tty_struct *tty = port->tty;
unsigned int ch, flag; unsigned int ch, flag;
@ -417,9 +419,9 @@ static void sdio_uart_receive_chars(struct sdio_uart_port *port, unsigned int *s
* Mask off conditions which should be ignored. * Mask off conditions which should be ignored.
*/ */
*status &= port->read_status_mask; *status &= port->read_status_mask;
if (*status & UART_LSR_BI) { if (*status & UART_LSR_BI)
flag = TTY_BREAK; flag = TTY_BREAK;
} else if (*status & UART_LSR_PE) else if (*status & UART_LSR_PE)
flag = TTY_PARITY; flag = TTY_PARITY;
else if (*status & UART_LSR_FE) else if (*status & UART_LSR_FE)
flag = TTY_FRAME; flag = TTY_FRAME;