pinctrl: generic: Make 'conf_items' static
authorSachin Kamat <sachin.kamat@linaro.org>
Fri, 15 Mar 2013 04:53:15 +0000 (10:23 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 27 Mar 2013 21:48:08 +0000 (22:48 +0100)
'conf_items' is used only in this file. Silences the below
sparse warning:
drivers/pinctrl/pinconf-generic.c:37:24: warning:
symbol 'conf_items' was not declared. Should it be static?

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinconf-generic.c

index 9c436858812cf36517d0d97efa9ce647f79fddb8..791e6a39e7524d6f7bf75ed2b21aa47819b4b9b5 100644 (file)
@@ -34,7 +34,7 @@ struct pin_config_item {
 
 #define PCONFDUMP(a, b, c) { .param = a, .display = b, .format = c }
 
-struct pin_config_item conf_items[] = {
+static struct pin_config_item conf_items[] = {
        PCONFDUMP(PIN_CONFIG_BIAS_DISABLE, "input bias disabled", NULL),
        PCONFDUMP(PIN_CONFIG_BIAS_HIGH_IMPEDANCE, "input bias high impedance", NULL),
        PCONFDUMP(PIN_CONFIG_BIAS_PULL_UP, "input bias pull up", NULL),