Skip to contentSkip to conversation

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

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

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

PATCH 1/1 media: i2c: ds90ub9x3: 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/ds90ub913.c | 1 -
 drivers/media/i2c/ds90ub953.c | 1 -
 2 files changed, 2 deletions(-)
drivers/media/i2c/ds90ub913.c +0 -1
index 834df8d508e6..352b3d26f376 100644
@@ -12,7 +12,6 @@
 #include <linux/clk-provider.h>
 #include <linux/clk.h>
 #include <linux/delay.h>
-#include <linux/fwnode.h>
 #include <linux/gpio/driver.h>
 #include <linux/i2c-atr.h>
 #include <linux/i2c.h>
drivers/media/i2c/ds90ub953.c +0 -1
index 1cd5ac7157e4..dc50517fd228 100644
@@ -11,7 +11,6 @@
 #include <linux/clk-provider.h>
 #include <linux/clk.h>
 #include <linux/delay.h>
-#include <linux/fwnode.h>
 #include <linux/gpio/driver.h>
 #include <linux/i2c-atr.h>
 #include <linux/i2c.h>
Signature · 1 line
2.47.2
maintainer Reviewed-by on v1 1/1
#1 lore raw

Hi,

Quoted 30 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/ds90ub913.c | 1 -
  drivers/media/i2c/ds90ub953.c | 1 -
  2 files changed, 2 deletions(-)
drivers/media/i2c/ds90ub913.c +0 -1
index 834df8d508e6..352b3d26f376 100644
@@ -12,7 +12,6 @@
  #include <linux/clk-provider.h>
  #include <linux/clk.h>
  #include <linux/delay.h>
-#include <linux/fwnode.h>
  #include <linux/gpio/driver.h>
  #include <linux/i2c-atr.h>
  #include <linux/i2c.h>
drivers/media/i2c/ds90ub953.c +0 -0
index 1cd5ac7157e4..dc50517fd228 100644

drivers/media/i2c/ds90ub953.c line 16

Quoted 7 lines
drivers/media/i2c/ds90ub953.c +0 -1
@@ -11,7 +11,6 @@
  #include <linux/clk-provider.h>
  #include <linux/clk.h>
  #include <linux/delay.h>
-#include <linux/fwnode.h>
  #include <linux/gpio/driver.h>
  #include <linux/i2c-atr.h>
  #include <linux/i2c.h>

Tomi

#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