Skip to contentSkip to conversation

serial: arc: Convert to use default_serial_puts

PATCH In review Axel Lin 2 participants 2 messages Feb 8, 2014 – Feb 21, 2014

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 serial: arc: Convert to use default_serial_puts

Use default_serial_puts() instead of duplicating the implementation.

---
 drivers/serial/serial_arc.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
drivers/serial/serial_arc.c +1 -7
index e63d25d..fd56ca3 100644
@@ -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,
 };
Signature · 1 line
1.8.1.2
#1 lore raw
Quoted 3 lines · Axel Lin

Use default_serial_puts() instead of duplicating the implementation.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140221/478712f0/attachment.pgp>