gpio: add protype for name_to_gpio
authorJeroen Hofstee <jeroen@myspectrum.nl>
Wed, 8 Oct 2014 20:58:03 +0000 (22:58 +0200)
committerTom Rini <trini@ti.com>
Sat, 25 Oct 2014 19:27:36 +0000 (15:27 -0400)
Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
common/cmd_gpio.c
include/asm-generic/gpio.h

index 11f4e4031daddca8570892c53c47e16a198cee8a..8d946f42acc3e3602fb6407d0fb40ce0e34eac64 100644 (file)
@@ -12,7 +12,7 @@
 #include <dm.h>
 #include <asm/gpio.h>
 
-int __weak name_to_gpio(const char *name)
+__weak int name_to_gpio(const char *name)
 {
        return simple_strtoul(name, NULL, 10);
 }
index 1ebb9c724d5a0af3816ee6b03697549ed7601b45..347805ed51559bfb1bf9256c27603bfa3a8246a5 100644 (file)
@@ -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_ */