From patchwork Tue Mar 19 06:31:18 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 15417 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id BF0A823E2C for ; Tue, 19 Mar 2013 06:42:29 +0000 (UTC) Received: from mail-ve0-f177.google.com (mail-ve0-f177.google.com [209.85.128.177]) by fiordland.canonical.com (Postfix) with ESMTP id 7AD9AA18956 for ; Tue, 19 Mar 2013 06:42:29 +0000 (UTC) Received: by mail-ve0-f177.google.com with SMTP id m1so107021ves.8 for ; Mon, 18 Mar 2013 23:42:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state; bh=aG78CkeCkTBwywcIAMNbuqJKDm9v7vDWpjwEY9jscDw=; b=jAuyY3wDm8muCXauoJtZIipxt2Ux0dSD5miygFtlCjtJXXOV67pJrs+v4IUatnzH/u 62o5zUaOSGGm111aB4claJzDMVfFyK7LRL37FXW+HlYYSsY/nzRnMxBtax6FLTreB2a5 nCcCq3f1GznwvZLMfBLlusNv5w96KzksvlRamXIMgK+cE6+MaLqdZVkCmUTf62Vuw+z8 glLE77GebspkeGCi3OFPxL088qr/yGJUmD9vWxChWSfmA73D+MokUNipSTH1prsESVMv 4hjHiOP637pWaEnKS7oQGUUkSBAxKCkgIJQM6hB0Be0fTDW5J3SBVOiq5N982jhtOg4k o2Zg== X-Received: by 10.220.39.69 with SMTP id f5mr1077771vce.45.1363675348988; Mon, 18 Mar 2013 23:42:28 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.58.127.98 with SMTP id nf2csp78680veb; Mon, 18 Mar 2013 23:42:28 -0700 (PDT) X-Received: by 10.68.196.193 with SMTP id io1mr1267613pbc.196.1363675347634; Mon, 18 Mar 2013 23:42:27 -0700 (PDT) Received: from mail-pb0-f46.google.com (mail-pb0-f46.google.com [209.85.160.46]) by mx.google.com with ESMTPS id ot10si24615854pbb.277.2013.03.18.23.42.27 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 18 Mar 2013 23:42:27 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.46 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.160.46; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.46 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Received: by mail-pb0-f46.google.com with SMTP id uo15so161294pbc.19 for ; Mon, 18 Mar 2013 23:42:27 -0700 (PDT) X-Received: by 10.66.217.167 with SMTP id oz7mr1563027pac.151.1363675347252; Mon, 18 Mar 2013 23:42:27 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id ab1sm23076074pbd.37.2013.03.18.23.42.24 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 18 Mar 2013 23:42:26 -0700 (PDT) From: Sachin Kamat To: linux-kernel@vger.kernel.org Cc: linus.walleij@linaro.org, sachin.kamat@linaro.org, patches@linaro.org, Patrice Chotard Subject: [PATCH 2/5] pinctrl: ab8500: Staticize some symbols Date: Tue, 19 Mar 2013 12:01:18 +0530 Message-Id: <1363674681-4015-2-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1363674681-4015-1-git-send-email-sachin.kamat@linaro.org> References: <1363674681-4015-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQmexnbZ9XAl34Ux3VXbv+mRkh4STgskZTBhoM9vXEbna7EwdxckDP7vmacWrQI6MbXEuLFj These symbols are used only in this file. Silences the following warnings: drivers/pinctrl/pinctrl-ab8500.c:392:28: warning: symbol 'ab8500_alternate_functions' was not declared. Should it be static? drivers/pinctrl/pinctrl-ab8500.c:458:32: warning: symbol 'ab8500_gpio_irq_cluster' was not declared. Should it be static? Signed-off-by: Sachin Kamat Cc: Patrice Chotard Acked-by: Patrice Chotard --- drivers/pinctrl/pinctrl-ab8500.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/pinctrl-ab8500.c b/drivers/pinctrl/pinctrl-ab8500.c index 3b471d8..2ac2d0a 100644 --- a/drivers/pinctrl/pinctrl-ab8500.c +++ b/drivers/pinctrl/pinctrl-ab8500.c @@ -389,7 +389,8 @@ static const struct abx500_function ab8500_functions[] = { * alt_A | 1 | 0 | 0 */ -struct alternate_functions ab8500_alternate_functions[AB8500_GPIO_MAX_NUMBER + 1] = { +static struct +alternate_functions ab8500_alternate_functions[AB8500_GPIO_MAX_NUMBER + 1] = { ALTERNATE_FUNCTIONS(0, UNUSED, UNUSED, UNUSED, 0, 0, 0), /* no GPIO0 */ ALTERNATE_FUNCTIONS(1, 0, UNUSED, UNUSED, 0, 0, 0), /* GPIO1, altA controlled by bit 0 */ ALTERNATE_FUNCTIONS(2, 1, UNUSED, UNUSED, 0, 0, 0), /* GPIO2, altA controlled by bit 1 */ @@ -455,7 +456,7 @@ struct alternate_functions ab8500_alternate_functions[AB8500_GPIO_MAX_NUMBER + 1 * GPIO24 and GPIO25 * GPIO36 to GPIO41 */ -struct abx500_gpio_irq_cluster ab8500_gpio_irq_cluster[] = { +static struct abx500_gpio_irq_cluster ab8500_gpio_irq_cluster[] = { GPIO_IRQ_CLUSTER(6, 13, AB8500_INT_GPIO6R), GPIO_IRQ_CLUSTER(24, 25, AB8500_INT_GPIO24R), GPIO_IRQ_CLUSTER(36, 41, AB8500_INT_GPIO36R),