]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
serial: Coding style cleanup of struct serial_device
authorMarek Vasut <marex@denx.de>
Fri, 7 Sep 2012 12:32:10 +0000 (14:32 +0200)
committerTom Rini <trini@ti.com>
Mon, 15 Oct 2012 18:53:48 +0000 (11:53 -0700)
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 <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
include/serial.h

index 826b4884963ca54687cf76b3afdac042d6b0a8fd..e021a4cf6fffdee1aac51359b176f9167cd8c8c6 100644 (file)
@@ -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;