From: Jeroen Hofstee Date: Wed, 8 Oct 2014 20:58:03 +0000 (+0200) Subject: gpio: add protype for name_to_gpio X-Git-Tag: v2015.01-rc1~135 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5b5ac64560816ef9b731f8d66780ea959c8ee966;p=oweals%2Fu-boot.git gpio: add protype for name_to_gpio Signed-off-by: Jeroen Hofstee --- diff --git a/common/cmd_gpio.c b/common/cmd_gpio.c index 11f4e4031d..8d946f42ac 100644 --- a/common/cmd_gpio.c +++ b/common/cmd_gpio.c @@ -12,7 +12,7 @@ #include #include -int __weak name_to_gpio(const char *name) +__weak int name_to_gpio(const char *name) { return simple_strtoul(name, NULL, 10); } diff --git a/include/asm-generic/gpio.h b/include/asm-generic/gpio.h index 1ebb9c724d..347805ed51 100644 --- a/include/asm-generic/gpio.h +++ b/include/asm-generic/gpio.h @@ -193,4 +193,6 @@ const char *gpio_get_bank_info(struct udevice *dev, int *offset_count); int gpio_lookup_name(const char *name, struct udevice **devp, unsigned int *offsetp, unsigned int *gpiop); +int name_to_gpio(const char *name); + #endif /* _ASM_GENERIC_GPIO_H_ */