Skip to contentSkip to conversation

media: i2c: max9671x: Remove (explicitly) unused header

PATCH In review Andy Shevchenko 2 participants 3 messages Mar 31, 2025 – May 2, 2025

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

PATCH 1/1 media: i2c: max9671x: 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/media/i2c/max96714.c | 2 +-
 drivers/media/i2c/max96717.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/media/i2c/max96714.c +1 -1
index 159753b13777..3cc1b1ae47d1 100644
@@ -7,11 +7,11 @@
 
 #include <linux/bitfield.h>
 #include <linux/bitops.h>
-#include <linux/fwnode.h>
 #include <linux/gpio/consumer.h>
 #include <linux/i2c.h>
 #include <linux/i2c-mux.h>
 #include <linux/module.h>
+#include <linux/property.h>
 #include <linux/regmap.h>
 #include <linux/regulator/consumer.h>
 
drivers/media/i2c/max96717.c +1 -1
index 30c5ca0e817a..23fb7e67d1a4 100644
@@ -9,10 +9,10 @@
 #include <linux/clk.h>
 #include <linux/clk-provider.h>
 #include <linux/delay.h>
-#include <linux/fwnode.h>
 #include <linux/gpio/driver.h>
 #include <linux/i2c-mux.h>
 #include <linux/i2c.h>
+#include <linux/property.h>
 #include <linux/regmap.h>
 
 #include <media/v4l2-cci.h>
Signature · 1 line
2.47.2
maintainer Reviewed-by on v1 1/1
#1 lore raw

Hi,

Thanks for your patch

Quoted 44 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/media/i2c/max96714.c | 2 +-
 drivers/media/i2c/max96717.c | 2 +-

 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/media/i2c/max96714.c +0 -0
index 159753b13777..3cc1b1ae47d1 100644
@@ -7,11 +7,11 @@


 #include <linux/bitfield.h>
 #include <linux/bitops.h>
-#include <linux/fwnode.h>
 #include <linux/gpio/consumer.h>
 #include <linux/i2c.h>
 #include <linux/i2c-mux.h>
 #include <linux/module.h>
+#include <linux/property.h>
 #include <linux/regmap.h>
 #include <linux/regulator/consumer.h>

drivers/media/i2c/max96717.c +1 -1
index 30c5ca0e817a..23fb7e67d1a4 100644
@@ -9,10 +9,10 @@
  #include <linux/clk.h>
  #include <linux/clk-provider.h>
  #include <linux/delay.h>
-#include <linux/fwnode.h>
  #include <linux/gpio/driver.h>
  #include <linux/i2c-mux.h>
  #include <linux/i2c.h>
+#include <linux/property.h>
  #include <linux/regmap.h>
Quoted 3 lines


 #include <media/v4l2-cci.h>

Julien

#2 lore raw
In reply to Andy Shevchenko
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