Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c271cf37 authored by Alan Cox's avatar Alan Cox Committed by Greg Kroah-Hartman
Browse files

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: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 6238e712
Loading
Loading
Loading
Loading
+12 −11
Original line number Diff line number Diff line
@@ -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 @@ static int sdio_uart_activate(struct tty_port *tport, struct tty_struct *tty)
	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);