]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/linux/of_gpio.h
of: create of_phandle_args to simplify return of phandle parsing data
[karo-tx-linux.git] / include / linux / of_gpio.h
index 52280a2b5e632b1c402b50a99dcbb9891ff83564..b254052a49d7c283c281308de05850be47cbaffb 100644 (file)
@@ -18,6 +18,7 @@
 #include <linux/kernel.h>
 #include <linux/errno.h>
 #include <linux/gpio.h>
+#include <linux/of.h>
 
 struct device_node;
 
@@ -57,8 +58,9 @@ extern int of_mm_gpiochip_add(struct device_node *np,
 extern void of_gpiochip_add(struct gpio_chip *gc);
 extern void of_gpiochip_remove(struct gpio_chip *gc);
 extern struct gpio_chip *of_node_to_gpiochip(struct device_node *np);
-extern int of_gpio_simple_xlate(struct gpio_chip *gc, struct device_node *np,
-                               const void *gpio_spec, u32 *flags);
+extern int of_gpio_simple_xlate(struct gpio_chip *gc,
+                               const struct of_phandle_args *gpiospec,
+                               u32 *flags);
 
 #else /* CONFIG_OF_GPIO */
 
@@ -75,8 +77,8 @@ static inline unsigned int of_gpio_count(struct device_node *np)
 }
 
 static inline int of_gpio_simple_xlate(struct gpio_chip *gc,
-                                      struct device_node *np,
-                                      const void *gpio_spec, u32 *flags)
+                                      const struct of_phandle_args *gpiospec,
+                                      u32 *flags)
 {
        return -ENOSYS;
 }