]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
gpio: add static to get_function()
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 22 Jun 2017 07:50:25 +0000 (16:50 +0900)
committerTom Rini <trini@konsulko.com>
Thu, 6 Jul 2017 17:09:36 +0000 (13:09 -0400)
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/gpio/gpio-uclass.c

index f611996f1729b862450679cb730ccee20fad32d7..9faf3357af8bad2dad5a6a02eee2017df7d542b8 100644 (file)
@@ -494,8 +494,8 @@ static const char * const gpio_function[GPIOF_COUNT] = {
        "func",
 };
 
-int get_function(struct udevice *dev, int offset, bool skip_unused,
-                const char **namep)
+static int get_function(struct udevice *dev, int offset, bool skip_unused,
+                       const char **namep)
 {
        struct gpio_dev_priv *uc_priv = dev_get_uclass_priv(dev);
        struct dm_gpio_ops *ops = gpio_get_ops(dev);