diff options
Diffstat (limited to 'include/gpiod.h')
-rw-r--r-- | include/gpiod.h | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/include/gpiod.h b/include/gpiod.h index c8b2cd47a3..a23b82221f 100644 --- a/include/gpiod.h +++ b/include/gpiod.h @@ -2,25 +2,6 @@ #ifndef __GPIOD_H_ #define __GPIOD_H_ -#include <gpio.h> -#include <of_gpio.h> - -/** - * Optional flags that can be passed to one of gpiod_* to configure direction - * and output value. These values cannot be OR'd. - */ -enum gpiod_flags { - GPIOD_ASIS = 0, - GPIOD_IN = GPIOF_IN, - /* - * To change this later to a different logic level (i.e. taking - * active low into account), use gpio_direction_active() - */ - GPIOD_OUT_LOW = GPIOF_OUT_INIT_INACTIVE, - GPIOD_OUT_HIGH = GPIOF_OUT_INIT_ACTIVE, -}; - -/* returned gpio descriptor can be passed to any normal gpio_* function */ -int gpiod_get(struct device_d *dev, const char *_con_id, enum gpiod_flags flags); +#error "API changed from numbers to descriptors. #include <linux/gpio/consumer.h>" #endif |