Skip to contentSkip to conversation

i2c: atr: Remove (explicitly) unused header

PATCH Applied Andy Shevchenko 5 participants 5 messages Mar 31, 2025 – Apr 15, 2025

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

PATCH 1/1 i2c: atr: 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/i2c/i2c-atr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/i2c/i2c-atr.c +1 -1
index 8fe9ddff8e96..783fb8df2ebe 100644
@@ -8,12 +8,12 @@
  * Originally based on i2c-mux.c
  */
 
-#include <linux/fwnode.h>
 #include <linux/i2c-atr.h>
 #include <linux/i2c.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/mutex.h>
+#include <linux/property.h>
 #include <linux/slab.h>
 #include <linux/spinlock.h>
 
Signature · 1 line
2.47.2
Acked-by on v1 1/1
#1 lore raw
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 22 lines
---
  drivers/i2c/i2c-atr.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/i2c/i2c-atr.c +1 -1
index 8fe9ddff8e96..783fb8df2ebe 100644
@@ -8,12 +8,12 @@
   * Originally based on i2c-mux.c
   */
 
-#include <linux/fwnode.h>
  #include <linux/i2c-atr.h>
  #include <linux/i2c.h>
  #include <linux/kernel.h>
  #include <linux/module.h>
  #include <linux/mutex.h>
+#include <linux/property.h>
  #include <linux/slab.h>
  #include <linux/spinlock.h>
 
reviewer Reviewed-by on v1 1/1
#2 lore raw
In reply to Andy Shevchenko
Quoted 8 lines · On Mon, 31 Mar 2025 10:16:46 +0300 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.

Signature · 3 lines
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
maintainer Reviewed-by on v1 1/1
#3 lore raw
In reply to Andy Shevchenko

Hi,

Quoted 20 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.

---
  drivers/i2c/i2c-atr.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/i2c/i2c-atr.c +0 -0
index 8fe9ddff8e96..783fb8df2ebe 100644
@@ -8,12 +8,12 @@
   * Originally based on i2c-mux.c
   */
 

drivers/i2c/i2c-atr.c line 19

Quoted 10 lines
drivers/i2c/i2c-atr.c +1 -1
-#include <linux/fwnode.h>
  #include <linux/i2c-atr.h>
  #include <linux/i2c.h>
  #include <linux/kernel.h>
  #include <linux/module.h>
  #include <linux/mutex.h>
+#include <linux/property.h>
  #include <linux/slab.h>
  #include <linux/spinlock.h>
 

Tomi

Applied
#4 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.

Applied to for-current, thanks!