From patchwork Sat Feb 8 07:04:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 318383 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id A006D2C00A3 for ; Sat, 8 Feb 2014 18:05:16 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 411DA4BB55; Sat, 8 Feb 2014 08:05:15 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Rv6jz841s8Fu; Sat, 8 Feb 2014 08:05:15 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 069E44BB5F; Sat, 8 Feb 2014 08:05:13 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 848DE4BB62 for ; Sat, 8 Feb 2014 08:05:11 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XzFGXYBmZX-y for ; Sat, 8 Feb 2014 08:05:09 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-pa0-f42.google.com (mail-pa0-f42.google.com [209.85.220.42]) by theia.denx.de (Postfix) with ESMTPS id 0736D4BB55 for ; Sat, 8 Feb 2014 08:05:05 +0100 (CET) Received: by mail-pa0-f42.google.com with SMTP id kl14so4110887pab.29 for ; Fri, 07 Feb 2014 23:05:03 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:subject:from:to:cc:date:content-type :mime-version:content-transfer-encoding; bh=Zvm04rBhTfhBFUoR5r1/aBdaRZATBuYKITZbKupUwDs=; b=F9kZNzx10FkteIEc4yhfIJj/pl/KCAOriCpa8H51kdf88ux+2xFymjwuAy4sTxBpIr XXQtECt9flUW2f+FmCujM3tvTFda5yMxUWN3oWZPgYZChyCJRtgMi6vtwmlvUkBNrLIY Ll+/4lT5UNrxvhJmnnTQoTbABGhbzKXvQxjoR1+AUzsK4pcJYO6/4DqpiV3S1S8zy6i5 772qNlry+HNRUg6nZgHT+Ph3JMeWFBFOQVOQ3450Y+41rbjHTKuywSs2og/SFjTt89E/ Lr1a7N+kLFklkdeEBaMXEjV+4c8x1bKwagkdwRZoVDRS5z+WrWIOAU1qmeN7doZgkqHZ lGGQ== X-Gm-Message-State: ALoCoQm9Ee0hdhAHDTyrVDCuVVOd+VxPb2LQI77t33B7P0yx8L9DnMCqgNmJwrloWDaPeiBNJW49 X-Received: by 10.68.255.101 with SMTP id ap5mr24501512pbd.41.1391843103574; Fri, 07 Feb 2014 23:05:03 -0800 (PST) Received: from [192.168.0.102] (218-164-154-231.dynamic.hinet.net. [218.164.154.231]) by mx.google.com with ESMTPSA id g6sm52361655pat.2.2014.02.07.23.05.01 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 07 Feb 2014 23:05:02 -0800 (PST) Message-ID: <1391843098.4614.2.camel@phoenix> From: Axel Lin To: Tom Rini Date: Sat, 08 Feb 2014 15:04:58 +0800 X-Mailer: Evolution 3.6.4-0ubuntu1 Mime-Version: 1.0 Cc: u-boot@lists.denx.de, Alexey Brodkin Subject: [U-Boot] [PATCH] serial: arc: Convert to use default_serial_puts X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Use default_serial_puts() instead of duplicating the implementation. Signed-off-by: Axel Lin --- 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(®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, };