diff options
author | Marek Vasut <marex@denx.de> | 2012-10-06 14:07:02 +0000 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2012-10-17 07:55:50 -0700 |
commit | ec3fd68952662b1badb02caab9705eb93bdc4f1b (patch) | |
tree | 27e851d5f0b27b2b50b6125a818998aef597157a /drivers/serial/ns9750_serial.c | |
parent | bfb7d7a3d61ff23f9dd265a56e8b5cac5bbfd76e (diff) | |
download | u-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/ns9750_serial.c')
-rw-r--r-- | drivers/serial/ns9750_serial.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/drivers/serial/ns9750_serial.c b/drivers/serial/ns9750_serial.c index cb545c4..85fc68a 100644 --- a/drivers/serial/ns9750_serial.c +++ b/drivers/serial/ns9750_serial.c @@ -100,19 +100,6 @@ static void ns9750_serial_putc(const char c) } /*********************************************************************** - * @Function: serial_puts - * @Return: n/a - * @Descr: writes non-zero string to the FIFO. - ***********************************************************************/ - -static void ns9750_serial_puts(const char *s) -{ - while (*s) { - serial_putc( *s++ ); - } -} - -/*********************************************************************** * @Function: serial_getc * @Return: the character read * @Descr: performs only 8bit accesses to the FIFO. No error handling @@ -215,7 +202,7 @@ static struct serial_device ns9750_serial_drv = { .stop = NULL, .setbrg = ns9750_serial_setbrg, .putc = ns9750_serial_putc, - .puts = ns9750_serial_puts, + .puts = default_serial_puts, .getc = ns9750_serial_getc, .tstc = ns9750_serial_tstc, }; |