mirror of
https://xff.cz/git/u-boot/
synced 2025-11-02 03:17:29 +01: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:
committed by
Tom Rini
parent
abcbe2eb00
commit
dcee1ab320
@@ -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_ */
|
||||
|
||||
Reference in New Issue
Block a user