summaryrefslogtreecommitdiffstats
path: root/drivers/gpio
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2018-02-08 17:57:43 +0100
committerLinus Walleij <linus.walleij@linaro.org>2018-02-22 15:30:31 +0100
commit63f2dc0a76120e07c7482c7c95b2254fad39b343 (patch)
tree6d54f54749722dbd40f89417c2a62846d064243f /drivers/gpio
parent75f8f5af0c2b633352baabd288eff419eb921106 (diff)
downloadop-kernel-dev-63f2dc0a76120e07c7482c7c95b2254fad39b343.zip
op-kernel-dev-63f2dc0a76120e07c7482c7c95b2254fad39b343.tar.gz
gpio: include consumer header in gpiolib.h
We are forward-declaring enum gpiod_flags, but this is not referenced by pointer, it is a real struct member, so we need to actually include it to compile anything including the local gpiolib.h header. Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpiolib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpiolib.h b/drivers/gpio/gpiolib.h
index b17ec67..ad456b6 100644
--- a/drivers/gpio/gpiolib.h
+++ b/drivers/gpio/gpiolib.h
@@ -13,13 +13,13 @@
#define GPIOLIB_H
#include <linux/gpio/driver.h>
+#include <linux/gpio/consumer.h> /* for enum gpiod_flags */
#include <linux/err.h>
#include <linux/device.h>
#include <linux/module.h>
#include <linux/cdev.h>
enum of_gpio_flags;
-enum gpiod_flags;
enum gpio_lookup_flags;
struct acpi_device;
OpenPOWER on IntegriCloud