]> git.sur5r.net Git - u-boot/commitdiff
drivers/serial/serial_ns16550.c: sparse fixes
authorKim Phillips <kim.phillips@freescale.com>
Mon, 29 Oct 2012 13:34:47 +0000 (13:34 +0000)
committerTom Rini <trini@ti.com>
Sun, 4 Nov 2012 18:00:38 +0000 (11:00 -0700)
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
drivers/serial/serial_ns16550.c

index 4176e257e050f744d4aee5fe7ce58ff9f98f4a38..bf280baab21ceb8b5878d77b4d24ba3dfd410760 100644 (file)
@@ -78,21 +78,33 @@ static NS16550_t serial_ports[4] = {
 
 /* Multi serial device functions */
 #define DECLARE_ESERIAL_FUNCTIONS(port) \
-    static int  eserial##port##_init (void) {\
-       int clock_divisor; \
-       clock_divisor = calc_divisor(serial_ports[port-1]); \
-       NS16550_init(serial_ports[port-1], clock_divisor); \
-       return(0);}\
-    static void eserial##port##_setbrg (void) {\
-       serial_setbrg_dev(port);}\
-    static int  eserial##port##_getc (void) {\
-       return serial_getc_dev(port);}\
-    static int  eserial##port##_tstc (void) {\
-       return serial_tstc_dev(port);}\
-    static void eserial##port##_putc (const char c) {\
-       serial_putc_dev(port, c);}\
-    static void eserial##port##_puts (const char *s) {\
-       serial_puts_dev(port, s);}
+       static int  eserial##port##_init(void) \
+       { \
+               int clock_divisor; \
+               clock_divisor = calc_divisor(serial_ports[port-1]); \
+               NS16550_init(serial_ports[port-1], clock_divisor); \
+               return 0 ; \
+       } \
+       static void eserial##port##_setbrg(void) \
+       { \
+               serial_setbrg_dev(port); \
+       } \
+       static int  eserial##port##_getc(void) \
+       { \
+               return serial_getc_dev(port); \
+       } \
+       static int  eserial##port##_tstc(void) \
+       { \
+               return serial_tstc_dev(port); \
+       } \
+       static void eserial##port##_putc(const char c) \
+       { \
+               serial_putc_dev(port, c); \
+       } \
+       static void eserial##port##_puts(const char *s) \
+       { \
+               serial_puts_dev(port, s); \
+       }
 
 /* Serial device descriptor */
 #define INIT_ESERIAL_STRUCTURE(port, __name) { \