From patchwork Thu Nov 15 16:01:35 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 1750691 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id 90759DF2AB for ; Thu, 15 Nov 2012 16:03:34 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TZ1t2-0001fJ-9j; Thu, 15 Nov 2012 16:01:52 +0000 Received: from mail-pb0-f49.google.com ([209.85.160.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TZ1sy-0001ej-9c for linux-arm-kernel@lists.infradead.org; Thu, 15 Nov 2012 16:01:48 +0000 Received: by mail-pb0-f49.google.com with SMTP id un15so1166152pbc.36 for ; Thu, 15 Nov 2012 08:01:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:subject:from:to:cc:date:content-type:x-mailer :content-transfer-encoding:mime-version:x-gm-message-state; bh=N91kKVPf4tGT9Iw3JWcbvLXlRKkjjK0jcXQLc58YW8U=; b=KVgoNzzDuUbs1Pag2kp+mdTLgvWGA9oF11nNZhxIgQ4XOwrIfjNWmwB43W4Fyr0wRp Cw9OYH0IFCBY8t0V2iSAZ6+9qQqYUqJOsU30ZHMuZ/fMLJPCohloDbVcM0sDKwJ60g+9 /bS2cTuFlQYdgGeSwEUY7vJ74YHVNxsU+o24Rxxr05JAIySQJrdaqJJNk4AQfpBx3u3a Rgd6zK19v6WkS8IgCq9PJJLlzfTXcPZjEsbpCfNuXLEAXP4j66rlv/9i6dYMT5aFjgik RTKnmDRpDPMwuTkXCkadX+sdSS78ljPnWAfUYSVyY+OMX/OBPmHxztBTd1y9ffUCqCK0 R8gw== Received: by 10.68.192.5 with SMTP id hc5mr6292612pbc.16.1352995306615; Thu, 15 Nov 2012 08:01:46 -0800 (PST) Received: from [192.168.0.100] (114-40-20-54.dynamic.hinet.net. [114.40.20.54]) by mx.google.com with ESMTPS id ak10sm9703015pbd.24.2012.11.15.08.01.41 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 15 Nov 2012 08:01:45 -0800 (PST) Message-ID: <1352995295.10636.1.camel@phoenix> Subject: [PATCH] pinctrl: nomadik: Staticize non-exported symbols From: Axel Lin To: Linus Walleij Date: Fri, 16 Nov 2012 00:01:35 +0800 X-Mailer: Evolution 3.2.3-0ubuntu6 Mime-Version: 1.0 X-Gm-Message-State: ALoCoQmmJJnkgNAGwr0Ru3BgKy/4pA2G/CxH6ksLzGHOa1Jrc0URYhFPcRLoYDxXxISqBgflZaj0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121115_110148_445704_D6C7AFEA X-CRM114-Status: GOOD ( 12.14 ) X-Spam-Score: -0.9 (/) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-0.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.160.49 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 1.7 URIBL_BLACK Contains an URL listed in the URIBL blacklist [URIs: ingics.com] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Patrice Chotard , Lee Jones , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Srinidhi Kasagar X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org They are not referenced outside of this file, make them static. Signed-off-by: Axel Lin Acked-by: Lee Jones --- drivers/pinctrl/pinctrl-nomadik.c | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/drivers/pinctrl/pinctrl-nomadik.c b/drivers/pinctrl/pinctrl-nomadik.c index 238060e..cf99e0a 100644 --- a/drivers/pinctrl/pinctrl-nomadik.c +++ b/drivers/pinctrl/pinctrl-nomadik.c @@ -1285,8 +1285,8 @@ void nmk_gpio_read_pull(int gpio_bank, u32 *pull_up) } } -int nmk_gpio_irq_map(struct irq_domain *d, unsigned int irq, - irq_hw_number_t hwirq) +static int nmk_gpio_irq_map(struct irq_domain *d, unsigned int irq, + irq_hw_number_t hwirq) { struct nmk_gpio_chip *nmk_chip = d->host_data; @@ -1670,9 +1670,9 @@ static void nmk_pmx_disable(struct pinctrl_dev *pctldev, dev_dbg(npct->dev, "disable group %s, %u pins\n", g->name, g->npins); } -int nmk_gpio_request_enable(struct pinctrl_dev *pctldev, - struct pinctrl_gpio_range *range, - unsigned offset) +static int nmk_gpio_request_enable(struct pinctrl_dev *pctldev, + struct pinctrl_gpio_range *range, + unsigned offset) { struct nmk_pinctrl *npct = pinctrl_dev_get_drvdata(pctldev); struct nmk_gpio_chip *nmk_chip; @@ -1701,9 +1701,9 @@ int nmk_gpio_request_enable(struct pinctrl_dev *pctldev, return 0; } -void nmk_gpio_disable_free(struct pinctrl_dev *pctldev, - struct pinctrl_gpio_range *range, - unsigned offset) +static void nmk_gpio_disable_free(struct pinctrl_dev *pctldev, + struct pinctrl_gpio_range *range, + unsigned offset) { struct nmk_pinctrl *npct = pinctrl_dev_get_drvdata(pctldev); @@ -1721,17 +1721,15 @@ static struct pinmux_ops nmk_pinmux_ops = { .gpio_disable_free = nmk_gpio_disable_free, }; -int nmk_pin_config_get(struct pinctrl_dev *pctldev, - unsigned pin, - unsigned long *config) +static int nmk_pin_config_get(struct pinctrl_dev *pctldev, unsigned pin, + unsigned long *config) { /* Not implemented */ return -EINVAL; } -int nmk_pin_config_set(struct pinctrl_dev *pctldev, - unsigned pin, - unsigned long config) +static int nmk_pin_config_set(struct pinctrl_dev *pctldev, unsigned pin, + unsigned long config) { static const char *pullnames[] = { [NMK_GPIO_PULL_NONE] = "none",