gpio: reg: Add missing header(s)
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 7 Oct 2022 13:44:44 +0000 (16:44 +0300)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 24 Oct 2022 09:29:36 +0000 (12:29 +0300)
Do not imply that some of the generic headers may be always included.
Instead, include explicitly what we are direct user of.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
include/linux/gpio/gpio-reg.h

index 39b888c40b3950b144c0b22ba9a7628052fab209..3913b6660ed1e0e1b0a1c73639ce5718a73b5132 100644 (file)
@@ -2,9 +2,13 @@
 #ifndef GPIO_REG_H
 #define GPIO_REG_H
 
+#include <linux/types.h>
+
 struct device;
 struct irq_domain;
 
+struct gpio_chip;
+
 struct gpio_chip *gpio_reg_init(struct device *dev, void __iomem *reg,
        int base, int num, const char *label, u32 direction, u32 def_out,
        const char *const *names, struct irq_domain *irqdom, const int *irqs);