* [PATCH v2 1/1] pinctrl: core: Don't use "proxy" headers
@ 2026-03-23 13:41 Andy Shevchenko
2026-03-27 9:02 ` Linus Walleij
0 siblings, 1 reply; 2+ messages in thread
From: Andy Shevchenko @ 2026-03-23 13:41 UTC (permalink / raw)
To: Linus Walleij, Andy Shevchenko, linux-gpio, linux-kernel
Update header inclusions to follow IWYU (Include What You Use)
principle.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
v2: replaced gpio.h with gpio/consumer.h instead of dropping (LKP)
drivers/pinctrl/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pinctrl/core.c b/drivers/pinctrl/core.c
index 254161d52da7..6f09aa3aa83b 100644
--- a/drivers/pinctrl/core.c
+++ b/drivers/pinctrl/core.c
@@ -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>
--
2.50.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2 1/1] pinctrl: core: Don't use "proxy" headers
2026-03-23 13:41 [PATCH v2 1/1] pinctrl: core: Don't use "proxy" headers Andy Shevchenko
@ 2026-03-27 9:02 ` Linus Walleij
0 siblings, 0 replies; 2+ messages in thread
From: Linus Walleij @ 2026-03-27 9:02 UTC (permalink / raw)
To: Andy Shevchenko; +Cc: linux-gpio, linux-kernel
On Mon, Mar 23, 2026 at 2:42 PM Andy Shevchenko
<andriy.shevchenko@linux.intel.com> wrote:
> Update header inclusions to follow IWYU (Include What You Use)
> principle.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-03-27 9:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-23 13:41 [PATCH v2 1/1] pinctrl: core: Don't use "proxy" headers Andy Shevchenko
2026-03-27 9:02 ` Linus Walleij
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox