From: Masahiro Yamada Date: Thu, 22 Jun 2017 07:50:25 +0000 (+0900) Subject: gpio: add static to get_function() X-Git-Tag: v2017.07~36 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=fb07f97d6e1cebc41762bc69e36f31beba5ea7b1;p=oweals%2Fu-boot.git gpio: add static to get_function() Signed-off-by: Masahiro Yamada Reviewed-by: Bin Meng Reviewed-by: Simon Glass --- diff --git a/drivers/gpio/gpio-uclass.c b/drivers/gpio/gpio-uclass.c index f611996f17..9faf3357af 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);