From: Marek Vasut Date: Mon, 17 Sep 2012 01:20:26 +0200 Subject: [U-Boot] [PATCH 01/71] serial: Coding style cleanup of struct serial_device In-Reply-To: <1347837696-3192-1-git-send-email-marex@denx.de> References: <1347837696-3192-1-git-send-email-marex@denx.de> Message-ID: <1347837696-3192-2-git-send-email-marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Do a simple cleanup of the struct serial_device and align it with current coding style. Checkpatch now reports no errors. Signed-off-by: Marek Vasut Cc: Marek Vasut Cc: Tom Rini --- include/serial.h | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/include/serial.h b/include/serial.h index cbdf8a9..8433ed7 100644 --- a/include/serial.h +++ b/include/serial.h @@ -5,20 +5,19 @@ struct serial_device { /* enough bytes to match alignment of following func pointer */ - char name[16]; - - int (*init) (void); - int (*uninit) (void); - void (*setbrg) (void); - int (*getc) (void); - int (*tstc) (void); - void (*putc) (const char c); - void (*puts) (const char *s); + char name[16]; + + int (*init)(void); + int (*uninit)(void); + void (*setbrg)(void); + int (*getc)(void); + int (*tstc)(void); + void (*putc)(const char c); + void (*puts)(const char *s); #if CONFIG_POST & CONFIG_SYS_POST_UART - void (*loop) (int); + void (*loop)(int); #endif - - struct serial_device *next; + struct serial_device *next; }; extern struct serial_device serial_smc_device; -- 1.7.10.4