From patchwork Wed Oct 16 01:23:48 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 283808 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 787402C00E4 for ; Wed, 16 Oct 2013 12:24:50 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 961CA4A0A5; Wed, 16 Oct 2013 03:24:46 +0200 (CEST) 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 j0ZP3J8TAbCr; Wed, 16 Oct 2013 03:24:46 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 32DC64A09B; Wed, 16 Oct 2013 03:24:37 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 0DB114A09B for ; Wed, 16 Oct 2013 03:24:28 +0200 (CEST) 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 akZJsIOANZis for ; Wed, 16 Oct 2013 03:24:14 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 BL_NJABL=ERR(-1.5) (only DNSBL check requested) Received: from mail-pb0-f41.google.com (mail-pb0-f41.google.com [209.85.160.41]) by theia.denx.de (Postfix) with ESMTPS id 2BD1B4A099 for ; Wed, 16 Oct 2013 03:24:04 +0200 (CEST) Received: by mail-pb0-f41.google.com with SMTP id rp16so82023pbb.0 for ; Tue, 15 Oct 2013 18:23:58 -0700 (PDT) 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=bPGAkYYigi6uvNyzUg6AuhKfBPpWQyH12VtwRyEnzJw=; b=ZOTzfZovwl7E9E34jTmtCKGmTvdgenAFSjsBmt8uaNRcqtrby1pbpEbYuOpf5FBTDI GS/G6Mth3G4E4xXsgollYpEvBnHgag017NaGwGuinGuSt67khTJMVyGvs1gDv2tmIq00 Hq0bAh03wkLrr79AKYlGEhjyBc6t6AUXJYH8/4O3dr5AZYR4q4o1QzlSZs29lay5vmHd 5RruLL4VOiWg8OcHA1LW0imlARgdYD37g9YyrnxNIDSwlKPjnrGmuNMoWWVOeCyVBI94 N0Bj/5CRHgOOTRq9hHy4u603FUdG/7F9i4ZLqZSC3/M8Q7pVQKaGQksjmCcmYOqwWDft hFsw== X-Gm-Message-State: ALoCoQlRMboDifDJ98B4teQO5CHVii2x9mpQTh82uJ1JA9Pt6JzJGg1YhOf6gV1PrlUBKhMq+mpE X-Received: by 10.68.129.163 with SMTP id nx3mr193386pbb.84.1381886637607; Tue, 15 Oct 2013 18:23:57 -0700 (PDT) Received: from [218.164.132.175] (218-164-132-175.dynamic.hinet.net. [218.164.132.175]) by mx.google.com with ESMTPSA id l8sm87424267pbl.22.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 15 Oct 2013 18:23:56 -0700 (PDT) Message-ID: <1381886628.9895.1.camel@phoenix> From: Axel Lin To: Marek Vasut Date: Wed, 16 Oct 2013 09:23:48 +0800 X-Mailer: Evolution 3.6.4-0ubuntu1 Mime-Version: 1.0 Cc: u-boot@lists.denx.de, Stefan Roese Subject: [U-Boot] [PATCH 1/2] serial: xuartlite: Staticize local functions 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 Staticize local functions in xuartlite driver. Signed-off-by: Axel Lin --- drivers/serial/serial_xuartlite.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/serial/serial_xuartlite.c b/drivers/serial/serial_xuartlite.c index 9c1d025..daaf155 100644 --- a/drivers/serial/serial_xuartlite.c +++ b/drivers/serial/serial_xuartlite.c @@ -39,7 +39,7 @@ static struct uartlite *userial_ports[4] = { #endif }; -void uartlite_serial_putc(const char c, const int port) +static void uartlite_serial_putc(const char c, const int port) { struct uartlite *regs = userial_ports[port]; @@ -51,13 +51,13 @@ void uartlite_serial_putc(const char c, const int port) out_be32(®s->tx_fifo, c & 0xff); } -void uartlite_serial_puts(const char *s, const int port) +static void uartlite_serial_puts(const char *s, const int port) { while (*s) uartlite_serial_putc(*s++, port); } -int uartlite_serial_getc(const int port) +static int uartlite_serial_getc(const int port) { struct uartlite *regs = userial_ports[port]; @@ -66,7 +66,7 @@ int uartlite_serial_getc(const int port) return in_be32(®s->rx_fifo) & 0xff; } -int uartlite_serial_tstc(const int port) +static int uartlite_serial_tstc(const int port) { struct uartlite *regs = userial_ports[port];