Skip to contentSkip to conversation

ACPI: VIOT: Remove (explicitly) unused header

PATCH Applied Andy Shevchenko 3 participants 4 messages Mar 31, 2025 – May 7, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ACPI: VIOT: Remove (explicitly) unused header

The fwnode.h is not supposed to be used by the drivers as it has the definitions for the core parts for different device property provider implementations. Drop it.

Note, that fwnode API for drivers is provided in property.h which is included here.

---
 drivers/acpi/viot.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/acpi/viot.c +1 -1
index 2aa69a2fba73..c13a20365c2c 100644
@@ -19,11 +19,11 @@
 #define pr_fmt(fmt) "ACPI: VIOT: " fmt
 
 #include <linux/acpi_viot.h>
-#include <linux/fwnode.h>
 #include <linux/iommu.h>
 #include <linux/list.h>
 #include <linux/pci.h>
 #include <linux/platform_device.h>
+#include <linux/property.h>
 
 struct viot_iommu {
 	/* Node offset within the table */
Signature · 1 line
2.47.2
#1 lore raw
Quoted 6 lines · Andy Shevchenko

The fwnode.h is not supposed to be used by the drivers as it has the definitions for the core parts for different device property provider implementations. Drop it.

Note, that fwnode API for drivers is provided in property.h which is included here.

Any comments? Can it be applied?

Signature · 2 lines
With Best Regards,
Andy Shevchenko
Reviewed-by on v1 1/1
#2 lore raw
In reply to Andy Shevchenko
Quoted 8 lines · Andy Shevchenko

The fwnode.h is not supposed to be used by the drivers as it has the definitions for the core parts for different device property provider implementations. Drop it.

Note, that fwnode API for drivers is provided in property.h which is included here.

Quoted 24 lines
---
 drivers/acpi/viot.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/acpi/viot.c +1 -1
index 2aa69a2fba73..c13a20365c2c 100644
@@ -19,11 +19,11 @@
 #define pr_fmt(fmt) "ACPI: VIOT: " fmt
 
 #include <linux/acpi_viot.h>
-#include <linux/fwnode.h>
 #include <linux/iommu.h>
 #include <linux/list.h>
 #include <linux/pci.h>
 #include <linux/platform_device.h>
+#include <linux/property.h>
 
 struct viot_iommu {
 	/* Node offset within the table */
Signature · 1 line
2.47.2
maintainer Applied
#3 lore raw
Quoted 32 lines · Jean-Philippe Brucker
Quoted 8 lines · Andy Shevchenko

The fwnode.h is not supposed to be used by the drivers as it has the definitions for the core parts for different device property provider implementations. Drop it.

Note, that fwnode API for drivers is provided in property.h which is included here.

Quoted 19 lines
---
 drivers/acpi/viot.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/acpi/viot.c +1 -1
index 2aa69a2fba73..c13a20365c2c 100644
@@ -19,11 +19,11 @@
 #define pr_fmt(fmt) "ACPI: VIOT: " fmt
 
 #include <linux/acpi_viot.h>
-#include <linux/fwnode.h>
 #include <linux/iommu.h>
 #include <linux/list.h>
 #include <linux/pci.h>
 #include <linux/platform_device.h>
+#include <linux/property.h>
 
Quoted 3 lines

drivers/acpi/viot.c

Quoted 3 lines
drivers/acpi/viot.c +0 -1
 struct viot_iommu {
      /* Node offset within the table */
--

Applied as 6.16 material, thanks!