[PATCH] serial_core: Bring mostly into line with coding style

Previous thread: [PATCH] 8250: Enable rate reporting via termios by Alan Cox on Monday, November 19, 2007 - 11:15 am. (1 message)

Next thread: [patch/backport] CFS scheduler, -v24, for v2.6.24-rc3, v2.6.23.8, v2.6.22.13, v2.6.21.7 by Ingo Molnar on Monday, November 19, 2007 - 11:17 am. (20 messages)
To: <akpm@...>, <linux-kernel@...>
Date: Monday, November 19, 2007 - 11:16 am

Signed-off-by: Alan Cox <alan@redhat.com>

diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla-2.6.24-rc2-mm1/drivers/serial/serial_core.c linux-2.6.24-rc2-mm1/drivers/serial/serial_core.c
--- linux.vanilla-2.6.24-rc2-mm1/drivers/serial/serial_core.c 2007-11-16 17:55:12.000000000 +0000
+++ linux-2.6.24-rc2-mm1/drivers/serial/serial_core.c 2007-11-16 18:35:53.000000000 +0000
@@ -58,7 +58,8 @@
#define uart_console(port) (0)
#endif

-static void uart_change_speed(struct uart_state *state, struct ktermios *old_termios);
+static void uart_change_speed(struct uart_state *state,
+ struct ktermios *old_termios);
static void uart_wait_until_sent(struct tty_struct *tty, int timeout);
static void uart_change_pm(struct uart_state *state, int pm_state);

@@ -129,8 +130,8 @@
spin_unlock_irqrestore(&port->lock, flags);
}

-#define uart_set_mctrl(port,set) uart_update_mctrl(port,set,0)
-#define uart_clear_mctrl(port,clear) uart_update_mctrl(port,0,clear)
+#define uart_set_mctrl(port, set) uart_update_mctrl(port, set, 0)
+#define uart_clear_mctrl(port, clear) uart_update_mctrl(port, 0, clear)

/*
* Startup the port. This will be called once per open. All calls
@@ -290,7 +291,7 @@
break;
default:
bits = 10;
- break; // CS8
+ break; /* CS8 */
}

if (cflag & CSTOPB)
@@ -621,7 +623,7 @@
tmp.close_delay = state->close_delay / 10;
tmp.closing_wait = state->closing_wait == USF_CLOSING_WAIT_NONE ?
ASYNC_CLOSING_WAIT_NONE :
- state->closing_wait / 10;
+ state->closing_wait / 10;
tmp.custom_divisor = port->custom_divisor;
tmp.hub6 = port->hub6;
tmp.io_type = port->iotype;
@@ -787,7 +789,8 @@
* We failed anyway.
*/
retval = -EBUSY;
- goto exit; // Added to return the correct error -Ram Gupta
+ /* Added to return the correct error -Ram Gupta */
+ goto exit;
}
}

@@ -857,7 +860,7 @@
((uart_circ_chars_pending(&amp...

Previous thread: [PATCH] 8250: Enable rate reporting via termios by Alan Cox on Monday, November 19, 2007 - 11:15 am. (1 message)

Next thread: [patch/backport] CFS scheduler, -v24, for v2.6.24-rc3, v2.6.23.8, v2.6.22.13, v2.6.21.7 by Ingo Molnar on Monday, November 19, 2007 - 11:17 am. (20 messages)