summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2012-09-07 14:32:10 +0200
committerTom Rini <trini@ti.com>2012-10-15 11:53:48 -0700
commit78322d63eac41957a41cd26d9b2e904da4a42fa1 (patch)
treedc648309eb5619f9f2d3c431e23259c863eb7890 /include
parent51926d5ee0be029fb45f10f42756df97279f8ad3 (diff)
downloadu-boot-imx-78322d63eac41957a41cd26d9b2e904da4a42fa1.zip
u-boot-imx-78322d63eac41957a41cd26d9b2e904da4a42fa1.tar.gz
u-boot-imx-78322d63eac41957a41cd26d9b2e904da4a42fa1.tar.bz2
serial: Coding style cleanup of struct serial_device
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>
Diffstat (limited to 'include')
-rw-r--r--include/serial.h23
1 files changed, 11 insertions, 12 deletions
diff --git a/include/serial.h b/include/serial.h
index 826b488..e021a4c 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;