pinctrl: core: Don't use "proxy" headers
Subsystems (2)
PATCH v2 1/1 pinctrl: core: Don't use "proxy" headers
Update header inclusions to follow IWYU (Include What You Use) principle.
Signed-off-by Andy Shevchenko <[email protected]>
---
v2: replaced gpio.h with gpio/consumer.h instead of dropping (LKP)
drivers/pinctrl/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pinctrl/core.c +1 -1
@@ -24,7 +24,7 @@#include <linux/seq_file.h> #include <linux/slab.h> -#include <linux/gpio.h> +#include <linux/gpio/consumer.h> #include <linux/gpio/driver.h> #include <linux/pinctrl/consumer.h>
Signature · 1 line
2.50.1
Linus Walleij
maintainerQuoted 4 lines · Andy Shevchenko
Update header inclusions to follow IWYU (Include What You Use) principle.
Signed-off-by Andy Shevchenko <[email protected]>
I think <linux/gpio.h> was included for some historical reason, like the gpio_to_desc()/desc_to_gpio() being in that file.
But who cares, it isn't anymore, so patch applied!
Yours,
Linus Walleij