[U-Boot] [PATCH] gpio: add static to get_function()

Masahiro Yamada yamada.masahiro at socionext.com
Thu Jun 22 07:50:25 UTC 2017


Signed-off-by: Masahiro Yamada <yamada.masahiro at socionext.com>
---

 drivers/gpio/gpio-uclass.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpio/gpio-uclass.c b/drivers/gpio/gpio-uclass.c
index f611996f1729..9faf3357af8b 100644
--- a/drivers/gpio/gpio-uclass.c
+++ b/drivers/gpio/gpio-uclass.c
@@ -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);
-- 
2.7.4



More information about the U-Boot mailing list