aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMasahiro Yamada2017-06-22 16:50:25 +0900
committerTom Rini2017-07-06 13:09:36 -0400
commitfb07f97d6e1cebc41762bc69e36f31beba5ea7b1 (patch)
treeec79733c86ca840aeb7b7d6c0503bdb448c3a324
parent49ddcf3e0e923040ef554d9ea033e0d8ba7e80e1 (diff)
gpio: add static to get_function()
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r--drivers/gpio/gpio-uclass.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpio/gpio-uclass.c b/drivers/gpio/gpio-uclass.c
index f611996f172..9faf3357af8 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);