mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-14 21:10:27 +01:00
serial: arc: Convert to use default_serial_puts
Use default_serial_puts() instead of duplicating the implementation. Signed-off-by: Axel Lin <axel.lin@ingics.com>
This commit is contained in:
parent
1530f6f51a
commit
1cb8393a13
1 changed files with 1 additions and 7 deletions
|
|
@ -93,19 +93,13 @@ static int arc_serial_getc(void)
|
|||
return readb(®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,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue