From patchwork Tue Mar 19 06:31:19 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 15418 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 1447623E2C for ; Tue, 19 Mar 2013 06:42:32 +0000 (UTC) Received: from mail-vb0-f47.google.com (mail-vb0-f47.google.com [209.85.212.47]) by fiordland.canonical.com (Postfix) with ESMTP id BB7D2A18C11 for ; Tue, 19 Mar 2013 06:42:31 +0000 (UTC) Received: by mail-vb0-f47.google.com with SMTP id e21so94714vbm.34 for ; Mon, 18 Mar 2013 23:42:31 -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=GhfO0lEFT5w9Eh+5ksHaRMhyZnmz4/fMvpYS/na2oA8=; b=YJ5ZQwgXQAZ4o4xWoCw0YeDKu0RfM3+6FEmPMGfA7arGlQvaXBm4H+GgHqSJHFKigr KpWABGsZJJJBATRhfhR9eFf3yNCuVByLhZh/jmgDUk5Q2GiEIlgo2HQ/sLWP/sl7kGTB 56O6OQH/I/XjkYRKRZpQEoJMsIdH5iPRP3dd1/AuvqUwDjwq6UbrS8lPyYWj2JTWbqSQ YNxP6v10p3GHxAVbZ82bLhKlmQlwZQEXjyPhKbpqVq44ryMI8KViSCbRbvQq2DW0SZOJ 6A0utOx4dD3QH7QnI6T18jtsZzdBi+OjcdwGO7WlXugRW/uVu/t+esBz0mNLKD/AIrJh i1QA== X-Received: by 10.52.18.148 with SMTP id w20mr819749vdd.8.1363675351211; Mon, 18 Mar 2013 23:42:31 -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 nf2csp78683veb; Mon, 18 Mar 2013 23:42:30 -0700 (PDT) X-Received: by 10.66.153.10 with SMTP id vc10mr1697723pab.4.1363675350427; Mon, 18 Mar 2013 23:42:30 -0700 (PDT) Received: from mail-pd0-f169.google.com (mail-pd0-f169.google.com [209.85.192.169]) by mx.google.com with ESMTPS id tp7si24676830pbc.111.2013.03.18.23.42.30 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 18 Mar 2013 23:42:30 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.169 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.192.169; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.192.169 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-pd0-f169.google.com with SMTP id 3so64453pdj.14 for ; Mon, 18 Mar 2013 23:42:30 -0700 (PDT) X-Received: by 10.68.25.138 with SMTP id c10mr1337368pbg.133.1363675350051; Mon, 18 Mar 2013 23:42:30 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id ab1sm23076074pbd.37.2013.03.18.23.42.27 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 18 Mar 2013 23:42:29 -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 3/5] pinctrl: ab9540: Staticize some symbols Date: Tue, 19 Mar 2013 12:01:19 +0530 Message-Id: <1363674681-4015-3-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: ALoCoQlH5hkY03g+hc9ucjRB6adqvyc2wUwFZNMAfkW1KLoAC4yKbtzRiI5tSbprDxcevTe4rBSA Fixes the following warnings: drivers/pinctrl/pinctrl-ab9540.c:382:28: warning: symbol 'ab9540alternate_functions' was not declared. Should it be static? drivers/pinctrl/pinctrl-ab9540.c:457:32: warning: symbol 'ab9540_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-ab9540.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/pinctrl-ab9540.c b/drivers/pinctrl/pinctrl-ab9540.c index 7610bd0..27835ce 100644 --- a/drivers/pinctrl/pinctrl-ab9540.c +++ b/drivers/pinctrl/pinctrl-ab9540.c @@ -379,7 +379,8 @@ static const struct abx500_function ab9540_functions[] = { * alt_A | 1 | 0 | 0 */ -struct alternate_functions ab9540alternate_functions[AB9540_GPIO_MAX_NUMBER + 1] = { +static struct +alternate_functions ab9540alternate_functions[AB9540_GPIO_MAX_NUMBER + 1] = { /* GPIOSEL1 - bits 4-7 are reserved */ 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 */ @@ -454,7 +455,7 @@ struct alternate_functions ab9540alternate_functions[AB9540_GPIO_MAX_NUMBER + 1] ALTERNATE_FUNCTIONS(54, 5, UNUSED, UNUSED, 0, 0, 0), /* GPIO54 = GPIO60, altA controlled by bit 5 */ }; -struct abx500_gpio_irq_cluster ab9540_gpio_irq_cluster[] = { +static struct abx500_gpio_irq_cluster ab9540_gpio_irq_cluster[] = { GPIO_IRQ_CLUSTER(10, 13, AB8500_INT_GPIO10R), GPIO_IRQ_CLUSTER(24, 25, AB8500_INT_GPIO24R), GPIO_IRQ_CLUSTER(40, 41, AB8500_INT_GPIO40R),