mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
gpio: add protype for name_to_gpio
Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
This commit is contained in:
@ -12,7 +12,7 @@
|
|||||||
#include <dm.h>
|
#include <dm.h>
|
||||||
#include <asm/gpio.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);
|
return simple_strtoul(name, NULL, 10);
|
||||||
}
|
}
|
||||||
|
@ -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,
|
int gpio_lookup_name(const char *name, struct udevice **devp,
|
||||||
unsigned int *offsetp, unsigned int *gpiop);
|
unsigned int *offsetp, unsigned int *gpiop);
|
||||||
|
|
||||||
|
int name_to_gpio(const char *name);
|
||||||
|
|
||||||
#endif /* _ASM_GENERIC_GPIO_H_ */
|
#endif /* _ASM_GENERIC_GPIO_H_ */
|
||||||
|
Reference in New Issue
Block a user