summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/omap_gpio.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/include/asm/omap_gpio.h')
-rw-r--r--arch/arm/include/asm/omap_gpio.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/include/asm/omap_gpio.h b/arch/arm/include/asm/omap_gpio.h
index 516cc4260c..1ebfa8694f 100644
--- a/arch/arm/include/asm/omap_gpio.h
+++ b/arch/arm/include/asm/omap_gpio.h
@@ -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_ */
OpenPOWER on IntegriCloud