summaryrefslogtreecommitdiff
path: root/board/logicpd
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2012-09-09 18:48:28 +0200
committerTom Rini <trini@ti.com>2012-10-15 11:53:48 -0700
commit90bad891e18cd77273ee951e61623d768255bcda (patch)
tree203eaa4424c779a3eb529b963e604aa106688278 /board/logicpd
parent89143fb3b0cc9897b7aa9ec8b6028a6c624887d4 (diff)
downloadu-boot-imx-90bad891e18cd77273ee951e61623d768255bcda.zip
u-boot-imx-90bad891e18cd77273ee951e61623d768255bcda.tar.gz
u-boot-imx-90bad891e18cd77273ee951e61623d768255bcda.tar.bz2
serial: Properly spell out the structure member names of serial_driver
Properly spell out the whole structure member names when an initialized varible is instantiated from the struct serial_driver. In case the structure definition for struct serial_driver undergoes reordering, there will be no impact on variables defined based on this structure. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Marek Vasut <marek.vasut@gmail.com> Cc: Tom Rini <trini@ti.com> Cc: Anatolij Gustschin <agust@denx.de> Cc: Stefan Roese <sr@denx.de> Cc: Mike Frysinger <vapier@gentoo.org> Cc: C Nauman <cnauman@diagraph.com> Cc: Minkyu Kang <mk7.kang@samsung.com> Cc: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'board/logicpd')
-rw-r--r--board/logicpd/zoom2/zoom2_serial.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/board/logicpd/zoom2/zoom2_serial.h b/board/logicpd/zoom2/zoom2_serial.h
index ad63a07..482fe2e 100644
--- a/board/logicpd/zoom2/zoom2_serial.h
+++ b/board/logicpd/zoom2/zoom2_serial.h
@@ -60,14 +60,14 @@ int quad_tstc_##n(void) \
} \
struct serial_device zoom2_serial_device##n = \
{ \
- __stringify(n), \
- quad_init_##n, \
- NULL, \
- quad_setbrg_##n, \
- quad_getc_##n, \
- quad_tstc_##n, \
- quad_putc_##n, \
- quad_puts_##n, \
+ .name = __stringify(n), \
+ .start = quad_init_##n, \
+ .stop = NULL, \
+ .setbrg = quad_setbrg_##n, \
+ .getc = quad_getc_##n, \
+ .tstc = quad_tstc_##n, \
+ .putc = quad_putc_##n, \
+ .puts = quad_puts_##n, \
};
#endif /* ZOOM2_SERIAL_H */