mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v1 1/1] media: i2c: max96717: Drop unused field assignment
@ 2025-03-31  7:01 Andy Shevchenko
  2025-05-06  7:23 ` Julien Massot
  0 siblings, 1 reply; 2+ messages in thread
From: Andy Shevchenko @ 2025-03-31  7:01 UTC (permalink / raw)
  To: Hans Verkuil, Sakari Ailus, Julien Massot, linux-media, linux-kernel
  Cc: Mauro Carvalho Chehab, Andy Shevchenko

The driver is not using gpio_chip::of_xlate() callback and hence
the of_gpio_n_cells assignment is unused. Drop it.

With that done, remove unneeded OF dependency and extend compile
test coverage.

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

diff --git a/drivers/media/i2c/Kconfig b/drivers/media/i2c/Kconfig
index e45ba127069f..8889f154f22e 100644
--- a/drivers/media/i2c/Kconfig
+++ b/drivers/media/i2c/Kconfig
@@ -1641,7 +1641,7 @@ config VIDEO_MAX96714
 
 config VIDEO_MAX96717
 	tristate "Maxim MAX96717 GMSL2 Serializer support"
-	depends on OF && I2C && VIDEO_DEV && COMMON_CLK
+	depends on I2C && VIDEO_DEV && COMMON_CLK
 	select I2C_MUX
 	select MEDIA_CONTROLLER
 	select GPIOLIB
diff --git a/drivers/media/i2c/max96717.c b/drivers/media/i2c/max96717.c
index 9259d58ba734..30c5ca0e817a 100644
--- a/drivers/media/i2c/max96717.c
+++ b/drivers/media/i2c/max96717.c
@@ -357,7 +357,6 @@ static int max96717_gpiochip_probe(struct max96717_priv *priv)
 	gc->direction_output = max96717_gpio_direction_out;
 	gc->set = max96717_gpiochip_set;
 	gc->get = max96717_gpiochip_get;
-	gc->of_gpio_n_cells = 2;
 
 	/* Disable GPIO forwarding */
 	for (i = 0; i < gc->ngpio; i++)
-- 
2.47.2


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

* Re: [PATCH v1 1/1] media: i2c: max96717: Drop unused field assignment
  2025-03-31  7:01 [PATCH v1 1/1] media: i2c: max96717: Drop unused field assignment Andy Shevchenko
@ 2025-05-06  7:23 ` Julien Massot
  0 siblings, 0 replies; 2+ messages in thread
From: Julien Massot @ 2025-05-06  7:23 UTC (permalink / raw)
  To: Andy Shevchenko, Hans Verkuil, Sakari Ailus, linux-media, linux-kernel
  Cc: Mauro Carvalho Chehab

Hi,

Sorry for the delay.

On Mon, 2025-03-31 at 10:01 +0300, Andy Shevchenko wrote:
> The driver is not using gpio_chip::of_xlate() callback and hence
> the of_gpio_n_cells assignment is unused. Drop it.
> 
> With that done, remove unneeded OF dependency and extend compile
> test coverage.
> 
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
>  drivers/media/i2c/Kconfig    | 2 +-
>  drivers/media/i2c/max96717.c | 1 -
>  2 files changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/drivers/media/i2c/Kconfig b/drivers/media/i2c/Kconfig
> index e45ba127069f..8889f154f22e 100644
> --- a/drivers/media/i2c/Kconfig
> +++ b/drivers/media/i2c/Kconfig
> @@ -1641,7 +1641,7 @@ config VIDEO_MAX96714
>  
>  config VIDEO_MAX96717
>  	tristate "Maxim MAX96717 GMSL2 Serializer support"
> -	depends on OF && I2C && VIDEO_DEV && COMMON_CLK
> +	depends on I2C && VIDEO_DEV && COMMON_CLK
>  	select I2C_MUX
>  	select MEDIA_CONTROLLER
>  	select GPIOLIB
> diff --git a/drivers/media/i2c/max96717.c b/drivers/media/i2c/max96717.c
> index 9259d58ba734..30c5ca0e817a 100644
> --- a/drivers/media/i2c/max96717.c
> +++ b/drivers/media/i2c/max96717.c
> @@ -357,7 +357,6 @@ static int max96717_gpiochip_probe(struct max96717_priv *priv)
>  	gc->direction_output = max96717_gpio_direction_out;
>  	gc->set = max96717_gpiochip_set;
>  	gc->get = max96717_gpiochip_get;
> -	gc->of_gpio_n_cells = 2;
>  
>  	/* Disable GPIO forwarding */
>  	for (i = 0; i < gc->ngpio; i++)

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

Regards,
Julien

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

end of thread, other threads:[~2025-05-06  7:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-31  7:01 [PATCH v1 1/1] media: i2c: max96717: Drop unused field assignment Andy Shevchenko
2025-05-06  7:23 ` Julien Massot

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

all inboxes | Powered by JetHome®