gpiolib: Update header block in gpiolib-cdev.h
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 5 Oct 2020 09:56:22 +0000 (12:56 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 8 Oct 2020 20:57:16 +0000 (22:57 +0200)
The dev_t is defined in types.h while struct gpio_device forward declaration
is missed. Take into account above and update header block in gpiolib-cdev.h.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20201005095622.73616-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib-cdev.h

index 19a4e3d57120215bb2594943823dca6ff0b303f3..cb41dd757338068000e7b69404f76c2380d61c7b 100644 (file)
@@ -3,7 +3,9 @@
 #ifndef GPIOLIB_CDEV_H
 #define GPIOLIB_CDEV_H
 
-#include <linux/device.h>
+#include <linux/types.h>
+
+struct gpio_device;
 
 #ifdef CONFIG_GPIO_CDEV