All of lore.kernel.org
 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

* [U-Boot] serial: arc: Convert to use default_serial_puts
  2014-02-08  7:04 [U-Boot] [PATCH] serial: arc: Convert to use default_serial_puts Axel Lin
@ 2014-02-21 14:50 ` Tom Rini
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2014-02-21 14:50 UTC (permalink / raw)
  To: u-boot

On Sat, Feb 08, 2014 at 03:04:58PM +0800, Axel Lin wrote:

> Use default_serial_puts() instead of duplicating the implementation.
> 
> Signed-off-by: Axel Lin <axel.lin@ingics.com>

Applied to u-boot/master, thanks!

-- 
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>

^ permalink raw reply	[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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.