summaryrefslogtreecommitdiffstats
path: root/drivers/gpio
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2020-10-05 11:56:22 +0200
committerLinus Walleij <linus.walleij@linaro.org>2020-10-08 22:57:16 +0200
commitfc709df553a34fd18010f52e6b47652268d83e7d (patch)
tree435d1bc66f2f5dc56f5d7e91b041a26b214a2ff0 /drivers/gpio
parentgpiolib: cdev: switch from kstrdup() to kstrndup() (diff)
downloadlinux-fc709df553a34fd18010f52e6b47652268d83e7d.tar.xz
linux-fc709df553a34fd18010f52e6b47652268d83e7d.zip
gpiolib: Update header block in gpiolib-cdev.h
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>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpiolib-cdev.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpio/gpiolib-cdev.h b/drivers/gpio/gpiolib-cdev.h
index 19a4e3d57120..cb41dd757338 100644
--- a/drivers/gpio/gpiolib-cdev.h
+++ b/drivers/gpio/gpiolib-cdev.h
@@ -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