mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
gpio: add gpio_is_valid() to omap_gpio API
Add gpio_is_valid() to omap_gpio API Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il> Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
This commit is contained in:
parent
abcbe2eb00
commit
dcee1ab320
2 changed files with 10 additions and 7 deletions
|
@ -49,4 +49,11 @@ extern const struct gpio_bank *const omap_gpio_bank;
|
|||
|
||||
#define METHOD_GPIO_24XX 4
|
||||
|
||||
/**
|
||||
* Check if gpio is valid.
|
||||
*
|
||||
* @param gpio GPIO number
|
||||
* @return 1 if ok, 0 on error
|
||||
*/
|
||||
int gpio_is_valid(int gpio);
|
||||
#endif /* _GPIO_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue