serial: arc: Convert to use default_serial_puts
PATCH 1/1 serial: arc: Convert to use default_serial_puts
Use default_serial_puts() instead of duplicating the implementation.
Signed-off-by Axel Lin <[email protected]>
--- drivers/serial/serial_arc.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-)
drivers/serial/serial_arc.c +1 -7
@@ -77,19 +77,13 @@ static int arc_serial_getc(void)return readl (®s->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
Quoted 3 lines · Axel Lin
Use
default_serial_puts()instead of duplicating the implementation.Signed-off-by Axel Lin <[email protected]>
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>