]> Gentwo Git Trees - linux/.git/commitdiff
PCI: stm32: Don't use 'proxy' headers
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 14 Nov 2025 18:52:01 +0000 (19:52 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 17 Nov 2025 20:38:52 +0000 (14:38 -0600)
Update header inclusions to follow IWYU (Include What You Use)
principle.

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

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://patch.msgid.link/20251114185534.3287497-1-andriy.shevchenko@linux.intel.com
drivers/pci/controller/dwc/pcie-stm32-ep.c
drivers/pci/controller/dwc/pcie-stm32.c
drivers/pci/controller/dwc/pcie-stm32.h

index 7d48038d576d9043e320bc5061a1f54b175ea53d..2cecf32d2b0f36ebe6a182674fdbff1841499a9b 100644 (file)
@@ -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>
index 96a5fb893af499403eedba4b694833f37bea4dde..a9e77478443b223692fe7d730023f174a1dd47fd 100644 (file)
@@ -7,18 +7,30 @@
  */
 
 #include <linux/clk.h>
+#include <linux/delay.h>
+#include <linux/device.h>
+#include <linux/err.h>
+#include <linux/gpio/consumer.h>
+#include <linux/irq.h>
 #include <linux/mfd/syscon.h>
+#include <linux/mod_devicetable.h>
+#include <linux/module.h>
+#include <linux/of.h>
 #include <linux/of_platform.h>
 #include <linux/phy/phy.h>
 #include <linux/pinctrl/consumer.h>
 #include <linux/platform_device.h>
+#include <linux/pm.h>
 #include <linux/pm_runtime.h>
 #include <linux/pm_wakeirq.h>
 #include <linux/regmap.h>
 #include <linux/reset.h>
+#include <linux/stddef.h>
+
+#include "../../pci.h"
+
 #include "pcie-designware.h"
 #include "pcie-stm32.h"
-#include "../../pci.h"
 
 struct stm32_pcie {
        struct dw_pcie pci;
index 09d39f04e46947c517a77d757152c3b687300994..419cf1ff669d4a4b8f17ae744b5e1bc848b6bad4 100644 (file)
@@ -6,6 +6,9 @@
  * Author: Christian Bruel <christian.bruel@foss.st.com>
  */
 
+#include <linux/bits.h>
+#include <linux/device.h>
+
 #define to_stm32_pcie(x)       dev_get_drvdata((x)->dev)
 
 #define STM32MP25_PCIECR_TYPE_MASK     GENMASK(11, 8)