public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] serial: arc: Convert to use default_serial_puts
@ 2014-02-08  7:04 Axel Lin
  2014-02-21 14:50 ` [U-Boot] " Tom Rini
  0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2014-02-08  7:04 UTC (permalink / raw)
  To: u-boot

Use default_serial_puts() instead of duplicating the implementation.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 drivers/serial/serial_arc.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/drivers/serial/serial_arc.c b/drivers/serial/serial_arc.c
index e63d25d..fd56ca3 100644
--- a/drivers/serial/serial_arc.c
+++ b/drivers/serial/serial_arc.c
@@ -77,19 +77,13 @@ static int arc_serial_getc(void)
 	return readl(&regs->data) & 0xFF;
 }
 
-static void arc_serial_puts(const char *s)
-{
-	while (*s)
-		arc_serial_putc(*s++);
-}
-
 static struct serial_device arc_serial_drv = {
 	.name	= "arc_serial",
 	.start	= arc_serial_init,
 	.stop	= NULL,
 	.setbrg	= arc_serial_setbrg,
 	.putc	= arc_serial_putc,
-	.puts	= arc_serial_puts,
+	.puts	= default_serial_puts,
 	.getc	= arc_serial_getc,
 	.tstc	= arc_serial_tstc,
 };
-- 
1.8.1.2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-02-21 14:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-08  7:04 [U-Boot] [PATCH] serial: arc: Convert to use default_serial_puts Axel Lin
2014-02-21 14:50 ` [U-Boot] " Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox