pinctrl: artpec6: Make two functions static
authorYueHaibing <yuehaibing@huawei.com>
Thu, 21 Mar 2019 15:09:09 +0000 (23:09 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 4 Apr 2019 15:25:10 +0000 (22:25 +0700)
Fix sparse warnings:

drivers/pinctrl/pinctrl-artpec6.c:691:5: warning:
 symbol 'artpec6_pmx_enable' was not declared. Should it be static?
drivers/pinctrl/pinctrl-artpec6.c:705:6: warning:
 symbol 'artpec6_pmx_disable' was not declared. Should it be static?

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Jesper Nilsson <jesper.nilsson@axis.com>
Reviewed-by: Mukesh Ojha <mojha@codeaurora.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-artpec6.c

index d89dc43c57578fdf92b803883997a20aac3e5e21..e836850bd268eed4d5ed9592fac851441b30da42 100644 (file)
@@ -688,8 +688,9 @@ static void artpec6_pmx_select_func(struct pinctrl_dev *pctldev,
        }
 }
 
-int artpec6_pmx_enable(struct pinctrl_dev *pctldev, unsigned int function,
-                      unsigned int group)
+static int artpec6_pmx_enable(struct pinctrl_dev *pctldev,
+                             unsigned int function,
+                             unsigned int group)
 {
        struct artpec6_pmx *pmx = pinctrl_dev_get_drvdata(pctldev);
 
@@ -702,8 +703,9 @@ int artpec6_pmx_enable(struct pinctrl_dev *pctldev, unsigned int function,
        return 0;
 }
 
-void artpec6_pmx_disable(struct pinctrl_dev *pctldev, unsigned int function,
-                        unsigned int group)
+static void artpec6_pmx_disable(struct pinctrl_dev *pctldev,
+                               unsigned int function,
+                               unsigned int group)
 {
        struct artpec6_pmx *pmx = pinctrl_dev_get_drvdata(pctldev);