summaryrefslogtreecommitdiff
path: root/drivers/serial/lpc32xx_hsuart.c
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2012-10-06 14:07:02 +0000
committerTom Rini <trini@ti.com>2012-10-17 07:55:50 -0700
commitec3fd68952662b1badb02caab9705eb93bdc4f1b (patch)
tree27e851d5f0b27b2b50b6125a818998aef597157a /drivers/serial/lpc32xx_hsuart.c
parentbfb7d7a3d61ff23f9dd265a56e8b5cac5bbfd76e (diff)
downloadu-boot-imx-ec3fd68952662b1badb02caab9705eb93bdc4f1b.zip
u-boot-imx-ec3fd68952662b1badb02caab9705eb93bdc4f1b.tar.gz
u-boot-imx-ec3fd68952662b1badb02caab9705eb93bdc4f1b.tar.bz2
serial: Use default_serial_puts() in drivers
Replace the in-place ad-hoc implementation of serial_puts() within the drivers with default_serial_puts() call. This cuts down on the code duplication quite a bit. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Marek Vasut <marek.vasut@gmail.com> Cc: Tom Rini <trini@ti.com>
Diffstat (limited to 'drivers/serial/lpc32xx_hsuart.c')
-rw-r--r--drivers/serial/lpc32xx_hsuart.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/serial/lpc32xx_hsuart.c b/drivers/serial/lpc32xx_hsuart.c
index 02429b5..7559916 100644
--- a/drivers/serial/lpc32xx_hsuart.c
+++ b/drivers/serial/lpc32xx_hsuart.c
@@ -77,19 +77,13 @@ static int lpc32xx_serial_init(void)
return 0;
}
-static void lpc32xx_serial_puts(const char *s)
-{
- while (*s)
- serial_putc(*s++);
-}
-
static struct serial_device lpc32xx_serial_drv = {
.name = "lpc32xx_serial",
.start = lpc32xx_serial_init,
.stop = NULL,
.setbrg = lpc32xx_serial_setbrg,
.putc = lpc32xx_serial_putc,
- .puts = lpc32xx_serial_puts,
+ .puts = default_serial_puts,
.getc = lpc32xx_serial_getc,
.tstc = lpc32xx_serial_tstc,
};