Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gpio: aggregator: Add missing header(s)

Do not imply that some of the generic headers may be always included.
Instead, include explicitly what we are direct user of.

While at it, drop unused linux/gpio.h and split out the GPIO group of
headers.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

+5 -4
+5 -4
drivers/gpio/gpio-aggregator.c
··· 10 10 #include <linux/bitmap.h> 11 11 #include <linux/bitops.h> 12 12 #include <linux/ctype.h> 13 - #include <linux/gpio.h> 14 - #include <linux/gpio/consumer.h> 15 - #include <linux/gpio/driver.h> 16 - #include <linux/gpio/machine.h> 17 13 #include <linux/idr.h> 18 14 #include <linux/kernel.h> 19 15 #include <linux/module.h> 20 16 #include <linux/mutex.h> 21 17 #include <linux/overflow.h> 22 18 #include <linux/platform_device.h> 19 + #include <linux/slab.h> 23 20 #include <linux/spinlock.h> 24 21 #include <linux/string.h> 22 + 23 + #include <linux/gpio/consumer.h> 24 + #include <linux/gpio/driver.h> 25 + #include <linux/gpio/machine.h> 25 26 26 27 #define AGGREGATOR_MAX_GPIOS 512 27 28