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:
parent
94e2bd6888
commit
1e04b7ae70
|
@ -231,7 +231,8 @@ static unsigned int sdio_uart_get_mctrl(struct sdio_uart_port *port)
|
|||
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;
|
||||
|
||||
|
@ -387,7 +388,8 @@ static void sdio_uart_stop_rx(struct sdio_uart_port *port)
|
|||
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;
|
||||
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.
|
||||
*/
|
||||
*status &= port->read_status_mask;
|
||||
if (*status & UART_LSR_BI) {
|
||||
if (*status & UART_LSR_BI)
|
||||
flag = TTY_BREAK;
|
||||
} else if (*status & UART_LSR_PE)
|
||||
else if (*status & UART_LSR_PE)
|
||||
flag = TTY_PARITY;
|
||||
else if (*status & UART_LSR_FE)
|
||||
flag = TTY_FRAME;
|
||||
|
@ -659,7 +661,7 @@ skip:
|
|||
free_page((unsigned long)port->xmit.buf);
|
||||
}
|
||||
|
||||
static int sdio_uart_open (struct tty_struct *tty, struct file * filp)
|
||||
static int sdio_uart_open(struct tty_struct *tty, struct file *filp)
|
||||
{
|
||||
struct sdio_uart_port *port;
|
||||
int ret;
|
||||
|
@ -925,7 +927,7 @@ static int sdio_uart_tiocmset(struct tty_struct *tty, struct file *file,
|
|||
struct sdio_uart_port *port = tty->driver_data;
|
||||
int result;
|
||||
|
||||
result =sdio_uart_claim_func(port);
|
||||
result = sdio_uart_claim_func(port);
|
||||
if(!result) {
|
||||
sdio_uart_update_mctrl(port, set, clear);
|
||||
sdio_uart_release_func(port);
|
||||
|
|
Loading…
Reference in New Issue