Skip to content
Snippets Groups Projects
Commit 1cb8393a authored by Axel Lin's avatar Axel Lin Committed by Tom Rini
Browse files

serial: arc: Convert to use default_serial_puts


Use default_serial_puts() instead of duplicating the implementation.

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
parent 1530f6f5
No related branches found
No related tags found
No related merge requests found
......@@ -93,19 +93,13 @@ static int arc_serial_getc(void)
return readb(&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,
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment