public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 1/1] media: i2c: max9671x: Remove (explicitly) unused header
@ 2025-03-31  7:27 Andy Shevchenko
  2025-04-04 13:04 ` Julien Massot
  2025-05-02 14:13 ` Andy Shevchenko
  0 siblings, 2 replies; 3+ messages in thread
From: Andy Shevchenko @ 2025-03-31  7:27 UTC (permalink / raw)
  To: Sakari Ailus, Julien Massot, linux-media, linux-kernel
  Cc: Mauro Carvalho Chehab, 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.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/media/i2c/max96714.c | 2 +-
 drivers/media/i2c/max96717.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/media/i2c/max96714.c b/drivers/media/i2c/max96714.c
index 159753b13777..3cc1b1ae47d1 100644
--- a/drivers/media/i2c/max96714.c
+++ b/drivers/media/i2c/max96714.c
@@ -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>
 
diff --git a/drivers/media/i2c/max96717.c b/drivers/media/i2c/max96717.c
index 30c5ca0e817a..23fb7e67d1a4 100644
--- a/drivers/media/i2c/max96717.c
+++ b/drivers/media/i2c/max96717.c
@@ -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>
-- 
2.47.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v1 1/1] media: i2c: max9671x: Remove (explicitly) unused header
  2025-03-31  7:27 [PATCH v1 1/1] media: i2c: max9671x: Remove (explicitly) unused header Andy Shevchenko
@ 2025-04-04 13:04 ` Julien Massot
  2025-05-02 14:13 ` Andy Shevchenko
  1 sibling, 0 replies; 3+ messages in thread
From: Julien Massot @ 2025-04-04 13:04 UTC (permalink / raw)
  To: Andy Shevchenko, Sakari Ailus, linux-media, linux-kernel
  Cc: Mauro Carvalho Chehab

Hi,

Thanks for your patch
On Mon, 2025-03-31 at 10:27 +0300, Andy Shevchenko wrote:
> 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.
> 
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
>  drivers/media/i2c/max96714.c | 2 +-
>  drivers/media/i2c/max96717.c | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/media/i2c/max96714.c b/drivers/media/i2c/max96714.c
> index 159753b13777..3cc1b1ae47d1 100644
> --- a/drivers/media/i2c/max96714.c
> +++ b/drivers/media/i2c/max96714.c
> @@ -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>
>  
> diff --git a/drivers/media/i2c/max96717.c b/drivers/media/i2c/max96717.c
> index 30c5ca0e817a..23fb7e67d1a4 100644
> --- a/drivers/media/i2c/max96717.c
> +++ b/drivers/media/i2c/max96717.c
> @@ -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>
> 

Reviewed-by: Julien Massot <julien.massot@collabora.com>

Julien


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v1 1/1] media: i2c: max9671x: Remove (explicitly) unused header
  2025-03-31  7:27 [PATCH v1 1/1] media: i2c: max9671x: Remove (explicitly) unused header Andy Shevchenko
  2025-04-04 13:04 ` Julien Massot
@ 2025-05-02 14:13 ` Andy Shevchenko
  1 sibling, 0 replies; 3+ messages in thread
From: Andy Shevchenko @ 2025-05-02 14:13 UTC (permalink / raw)
  To: Sakari Ailus, Julien Massot, linux-media, linux-kernel
  Cc: Mauro Carvalho Chehab

On Mon, Mar 31, 2025 at 10:27:07AM +0300, Andy Shevchenko wrote:
> 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?

-- 
With Best Regards,
Andy Shevchenko



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-05-02 14:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-31  7:27 [PATCH v1 1/1] media: i2c: max9671x: Remove (explicitly) unused header Andy Shevchenko
2025-04-04 13:04 ` Julien Massot
2025-05-02 14:13 ` Andy Shevchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox