浏览代码

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>
Linus Walleij 7 年之前
父节点
当前提交
63f2dc0a76
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/gpio/gpiolib.h

+ 1 - 1
drivers/gpio/gpiolib.h

@@ -13,13 +13,13 @@
 #define GPIOLIB_H
 #define GPIOLIB_H
 
 
 #include <linux/gpio/driver.h>
 #include <linux/gpio/driver.h>
+#include <linux/gpio/consumer.h> /* for enum gpiod_flags */
 #include <linux/err.h>
 #include <linux/err.h>
 #include <linux/device.h>
 #include <linux/device.h>
 #include <linux/module.h>
 #include <linux/module.h>
 #include <linux/cdev.h>
 #include <linux/cdev.h>
 
 
 enum of_gpio_flags;
 enum of_gpio_flags;
-enum gpiod_flags;
 enum gpio_lookup_flags;
 enum gpio_lookup_flags;
 struct acpi_device;
 struct acpi_device;