gpio: Avoid kernel.h inclusion where it's possible
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 5 Feb 2020 13:43:36 +0000 (15:43 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 10 Feb 2020 11:58:36 +0000 (12:58 +0100)
commit046e14afb3561523efd0047c35c20793ae5f8848
tree8415079a104325b2c9a750a212b2fe66220584a9
parentbb6d3fb354c5ee8d6bde2d576eb7220ea09862b9
gpio: Avoid kernel.h inclusion where it's possible

Inclusion of kernel.h increases the mess with the header dependencies.
Avoid kernel.h inclusion where it's possible.

Besides that, clean up a bit other inclusions inside GPIO subsystem headers.
It includes:
 - removal pin control bits (forward declaration and header) from linux/gpio.h
 - removal of.h from asm-generic/gpio.h
 - use of explicit headers in gpio/consumer.h
 - add FIXME note with regard to gpio.h inclusion in of_gpio,h

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20200205134336.20197-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
include/asm-generic/gpio.h
include/linux/gpio.h
include/linux/gpio/consumer.h
include/linux/of_gpio.h