tty: sdio_uart: Style fixes
Running the current code through checkpatch shows a few bits of noise mostly but not entirely from before the changes. Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
6238e712af
commit
c271cf37ba
@@ -465,7 +465,8 @@ static void sdio_uart_transmit_chars(struct sdio_uart_port *port)
|
||||
|
||||
tty = tty_port_tty_get(&port->port);
|
||||
|
||||
if (tty == NULL || circ_empty(xmit) || tty->stopped || tty->hw_stopped) {
|
||||
if (tty == NULL || circ_empty(xmit) ||
|
||||
tty->stopped || tty->hw_stopped) {
|
||||
sdio_uart_stop_tx(port);
|
||||
tty_kref_put(tty);
|
||||
return;
|
||||
@@ -674,7 +675,6 @@ err1:
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* sdio_uart_shutdown - stop hardware
|
||||
* @tport: tty port to shut down
|
||||
@@ -745,7 +745,6 @@ static int sdio_uart_install(struct tty_driver *driver, struct tty_struct *tty)
|
||||
} else
|
||||
sdio_uart_port_put(port);
|
||||
return ret;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -897,7 +896,8 @@ static void sdio_uart_unthrottle(struct tty_struct *tty)
|
||||
sdio_uart_release_func(port);
|
||||
}
|
||||
|
||||
static void sdio_uart_set_termios(struct tty_struct *tty, struct ktermios *old_termios)
|
||||
static void sdio_uart_set_termios(struct tty_struct *tty,
|
||||
struct ktermios *old_termios)
|
||||
{
|
||||
struct sdio_uart_port *port = tty->driver_data;
|
||||
unsigned int cflag = tty->termios->c_cflag;
|
||||
@@ -1133,7 +1133,8 @@ static int sdio_uart_probe(struct sdio_func *func,
|
||||
kfree(port);
|
||||
} else {
|
||||
struct device *dev;
|
||||
dev = tty_register_device(sdio_uart_tty_driver, port->index, &func->dev);
|
||||
dev = tty_register_device(sdio_uart_tty_driver,
|
||||
port->index, &func->dev);
|
||||
if (IS_ERR(dev)) {
|
||||
sdio_uart_port_remove(port);
|
||||
ret = PTR_ERR(dev);
|
||||
|
Reference in New Issue
Block a user