1 /* Public domain. */ 2 3 #ifndef _LINUX_GPIO_CONSUMER_H 4 #define _LINUX_GPIO_CONSUMER_H 5 6 struct device; 7 struct gpio_desc; 8 9 #define GPIOD_IN 0x0001 10 #define GPIOD_OUT_HIGH 0x0002 11 12 struct gpio_desc *devm_gpiod_get_optional(struct device *, const char *, int); 13 int gpiod_get_value_cansleep(const struct gpio_desc *); 14 15 static inline int gpiod_to_irq(const struct gpio_desc * desc)16gpiod_to_irq(const struct gpio_desc *desc) 17 { 18 return 42; 19 } 20 21 #endif 22