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