Skip to contentSkip to conversation

PCI: stm32-ep: Don't use "proxy" headers

PATCH Superseded Andy Shevchenko 2 participants 2 messages Nov 12, 2025 – Nov 14, 2025

Subsystems (4)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PCI: stm32-ep: Don't use "proxy" headers

Update header inclusions to follow IWYU (Include What You Use) principle.

In this case replace of_gpio.h, which is subject to remove by the GPIOLIB subsystem, with the respective headers that are being used by the driver.

---
 drivers/pci/controller/dwc/pcie-stm32-ep.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pci/controller/dwc/pcie-stm32-ep.c +1 -1
index 3400c7cd2d88..2b9b451306fc 100644
@@ -7,9 +7,9 @@
  */
 
 #include <linux/clk.h>
+#include <linux/gpio/consumer.h>
 #include <linux/mfd/syscon.h>
 #include <linux/of_platform.h>
-#include <linux/of_gpio.h>
 #include <linux/phy/phy.h>
 #include <linux/platform_device.h>
 #include <linux/pm_runtime.h>
Signature · 1 line
2.50.1
maintainer
#1 lore raw

Hello,

Quoted 16 lines · Andy Shevchenko

Update header inclusions to follow IWYU (Include What You Use) principle.

In this case replace of_gpio.h, which is subject to remove by the GPIOLIB subsystem, with the respective headers that are being used by the driver.

---
  drivers/pci/controller/dwc/pcie-stm32-ep.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pci/controller/dwc/pcie-stm32-ep.c +0 -0
index 3400c7cd2d88..2b9b451306fc 100644

drivers/pci/controller/dwc/pcie-stm32-ep.c line 15

Quoted 10 lines
drivers/pci/controller/dwc/pcie-stm32-ep.c +1 -1
@@ -7,9 +7,9 @@
   */
 
  #include <linux/clk.h>
+#include <linux/gpio/consumer.h>
  #include <linux/mfd/syscon.h>
  #include <linux/of_platform.h>
-#include <linux/of_gpio.h>
  #include <linux/phy/phy.h>
  #include <linux/platform_device.h>
  #include <linux/pm_runtime.h>

<linux/gpio/consumer.h> is already included from pcie-designware.h

However, if it is still required for IWYU, could you kindly include it in pcie-stm32.c as well while you are working on it?

Thank you very much

Christian