diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/gpio/consumer.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/gpio/consumer.h b/include/linux/gpio/consumer.h index 4d34dbbbad4d..387994325122 100644 --- a/include/linux/gpio/consumer.h +++ b/include/linux/gpio/consumer.h | |||
| @@ -36,6 +36,7 @@ void devm_gpiod_put(struct device *dev, struct gpio_desc *desc); | |||
| 36 | int gpiod_get_direction(const struct gpio_desc *desc); | 36 | int gpiod_get_direction(const struct gpio_desc *desc); |
| 37 | int gpiod_direction_input(struct gpio_desc *desc); | 37 | int gpiod_direction_input(struct gpio_desc *desc); |
| 38 | int gpiod_direction_output(struct gpio_desc *desc, int value); | 38 | int gpiod_direction_output(struct gpio_desc *desc, int value); |
| 39 | int gpiod_direction_output_raw(struct gpio_desc *desc, int value); | ||
| 39 | 40 | ||
| 40 | /* Value get/set from non-sleeping context */ | 41 | /* Value get/set from non-sleeping context */ |
| 41 | int gpiod_get_value(const struct gpio_desc *desc); | 42 | int gpiod_get_value(const struct gpio_desc *desc); |
| @@ -121,6 +122,12 @@ static inline int gpiod_direction_output(struct gpio_desc *desc, int value) | |||
| 121 | WARN_ON(1); | 122 | WARN_ON(1); |
| 122 | return -ENOSYS; | 123 | return -ENOSYS; |
| 123 | } | 124 | } |
| 125 | static inline int gpiod_direction_output_raw(struct gpio_desc *desc, int value) | ||
| 126 | { | ||
| 127 | /* GPIO can never have been requested */ | ||
| 128 | WARN_ON(1); | ||
| 129 | return -ENOSYS; | ||
| 130 | } | ||
| 124 | 131 | ||
| 125 | 132 | ||
| 126 | static inline int gpiod_get_value(const struct gpio_desc *desc) | 133 | static inline int gpiod_get_value(const struct gpio_desc *desc) |
