i2c: atr: Remove (explicitly) unused header
Subsystems (3)
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
@@ -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
Quoted 8 lines · Andy Shevchenko
The
fwnode.his 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.hwhich is included here.Signed-off-by Andy Shevchenko <[email protected]>
Quoted 22 lines
--- drivers/i2c/i2c-atr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/i2c/i2c-atr.c +1
-1@@ -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>
Quoted 8 lines · On Mon, 31 Mar 2025 10:16:46 +0300 Andy Shevchenko…
The
fwnode.his 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.hwhich is included here.Signed-off-by Andy Shevchenko <[email protected]>
Signature · 3 lines
Luca Ceresoli, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Hi,
Quoted 20 lines · Andy Shevchenko
The
fwnode.his 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.hwhich is included here.Signed-off-by Andy Shevchenko <[email protected]>--- drivers/i2c/i2c-atr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/i2c/i2c-atr.c +0
-0@@ -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
Wolfram Sang
AppliedQuoted 8 lines · Andy Shevchenko
The
fwnode.his 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.hwhich is included here.Signed-off-by Andy Shevchenko <[email protected]>
Applied to for-current, thanks!