|
@@ -65,6 +65,7 @@ static inline struct of_mm_gpio_chip *to_of_mm_gpio_chip(struct gpio_chip *gc)
|
|
|
|
|
|
extern int of_get_gpio_flags(struct device_node *np, int index,
|
|
extern int of_get_gpio_flags(struct device_node *np, int index,
|
|
enum of_gpio_flags *flags);
|
|
enum of_gpio_flags *flags);
|
|
|
|
+extern unsigned int of_gpio_count(struct device_node *np);
|
|
|
|
|
|
extern int of_mm_gpiochip_add(struct device_node *np,
|
|
extern int of_mm_gpiochip_add(struct device_node *np,
|
|
struct of_mm_gpio_chip *mm_gc);
|
|
struct of_mm_gpio_chip *mm_gc);
|
|
@@ -81,6 +82,11 @@ static inline int of_get_gpio_flags(struct device_node *np, int index,
|
|
return -ENOSYS;
|
|
return -ENOSYS;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+static inline unsigned int of_gpio_count(struct device_node *np)
|
|
|
|
+{
|
|
|
|
+ return 0;
|
|
|
|
+}
|
|
|
|
+
|
|
#endif /* CONFIG_OF_GPIO */
|
|
#endif /* CONFIG_OF_GPIO */
|
|
|
|
|
|
/**
|
|
/**
|