1 /* SPDX-License-Identifier: GPL-2.0 */
7 #include <linux/types.h>
9 #include <linux/notifier.h>
18 struct gpio_desc *of_find_gpio(struct device_node *np,
21 unsigned long *lookupflags);
22 int of_gpiochip_add(struct gpio_chip *gc);
23 void of_gpiochip_remove(struct gpio_chip *gc);
24 int of_gpio_get_count(struct device *dev, const char *con_id);
26 static inline struct gpio_desc *of_find_gpio(struct device_node *np,
29 unsigned long *lookupflags)
31 return ERR_PTR(-ENOENT);
33 static inline int of_gpiochip_add(struct gpio_chip *gc) { return 0; }
34 static inline void of_gpiochip_remove(struct gpio_chip *gc) { }
35 static inline int of_gpio_get_count(struct device *dev, const char *con_id)
39 #endif /* CONFIG_OF_GPIO */
41 extern struct notifier_block gpio_of_notifier;
43 #endif /* GPIOLIB_OF_H */