diff options
Diffstat (limited to 'drivers/gpio/gpiolib.h')
-rw-r--r-- | drivers/gpio/gpiolib.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpio/gpiolib.h b/drivers/gpio/gpiolib.h index cf092941a9fd..1a4103dd38df 100644 --- a/drivers/gpio/gpiolib.h +++ b/drivers/gpio/gpiolib.h | |||
@@ -15,6 +15,8 @@ | |||
15 | #include <linux/err.h> | 15 | #include <linux/err.h> |
16 | #include <linux/device.h> | 16 | #include <linux/device.h> |
17 | 17 | ||
18 | enum of_gpio_flags; | ||
19 | |||
18 | /** | 20 | /** |
19 | * struct acpi_gpio_info - ACPI GPIO specific information | 21 | * struct acpi_gpio_info - ACPI GPIO specific information |
20 | * @gpioint: if %true this GPIO is of type GpioInt otherwise type is GpioIo | 22 | * @gpioint: if %true this GPIO is of type GpioInt otherwise type is GpioIo |
@@ -46,4 +48,7 @@ acpi_get_gpiod_by_index(struct device *dev, int index, | |||
46 | int gpiochip_request_own_desc(struct gpio_desc *desc, const char *label); | 48 | int gpiochip_request_own_desc(struct gpio_desc *desc, const char *label); |
47 | void gpiochip_free_own_desc(struct gpio_desc *desc); | 49 | void gpiochip_free_own_desc(struct gpio_desc *desc); |
48 | 50 | ||
51 | struct gpio_desc *of_get_named_gpiod_flags(struct device_node *np, | ||
52 | const char *list_name, int index, enum of_gpio_flags *flags); | ||
53 | |||
49 | #endif /* GPIOLIB_H */ | 54 | #endif /* GPIOLIB_H */ |