[U-Boot] [PATCH] serial: arm_dcc: Convert to use default_serial_puts

Marek Vasut marex at denx.de
Sun Aug 18 22:19:16 CEST 2013


Dear Axel Lin,

> Use default_serial_puts() instead of its own implementation.
> 
> Signed-off-by: Axel Lin <axel.lin at ingics.com>

Thanks,

Acked-by: Marek Vasut <marex at denx.de>

> ---
>  drivers/serial/arm_dcc.c | 8 +-------
>  1 file changed, 1 insertion(+), 7 deletions(-)
> 
> diff --git a/drivers/serial/arm_dcc.c b/drivers/serial/arm_dcc.c
> index 29d9295..5dfb02f 100644
> --- a/drivers/serial/arm_dcc.c
> +++ b/drivers/serial/arm_dcc.c
> @@ -123,12 +123,6 @@ static void arm_dcc_putc(char ch)
>  		write_dcc(ch);
>  }
> 
> -static void arm_dcc_puts(const char *s)
> -{
> -	while (*s)
> -		arm_dcc_putc(*s++);
> -}
> -
>  static int arm_dcc_tstc(void)
>  {
>  	register unsigned int reg;
> @@ -148,7 +142,7 @@ static struct serial_device arm_dcc_drv = {
>  	.stop	= NULL,
>  	.setbrg	= arm_dcc_setbrg,
>  	.putc	= arm_dcc_putc,
> -	.puts	= arm_dcc_puts,
> +	.puts	= default_serial_puts,
>  	.getc	= arm_dcc_getc,
>  	.tstc	= arm_dcc_tstc,
>  };

Best regards,
Marek Vasut


More information about the U-Boot mailing list