media: i2c: max96717: Drop unused field assignment
Subsystems (2)
PATCH 1/1 media: i2c: max96717: Drop unused field assignment
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.
--- drivers/media/i2c/Kconfig | 2 +- drivers/media/i2c/max96717.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-)
drivers/media/i2c/Kconfig +1 -1
@@ -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
drivers/media/i2c/max96717.c +0 -1
@@ -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++)
Signature · 1 line
2.47.2
Hi,
Sorry for the delay.
Quoted 34 lines · Andy Shevchenko
The driver is not using
gpio_chip::of_xlate()callback and hence theof_gpio_n_cellsassignment is unused. Drop it.With that done, remove unneeded OF dependency and extend compile test coverage.
Signed-off-by Andy Shevchenko <[email protected]>---
drivers/media/i2c/Kconfig | 2 +-
drivers/media/i2c/max96717.c | 1 -2 files changed, 1 insertion(+), 2 deletions(-)drivers/media/i2c/Kconfig +0
-0@@ -1641,7 +1641,7 @@ config VIDEO_MAX96714
configVIDEO_MAX96717
tristate "Maxim MAX96717 GMSL2 Serializer support"drivers/media/i2c/Kconfig +1
-1- depends on OF && I2C && VIDEO_DEV && COMMON_CLK + depends on I2C && VIDEO_DEV && COMMON_CLKselect
I2C_MUX
selectMEDIA_CONTROLLER
select GPIOLIBdrivers/media/i2c/max96717.c +0
-1@@ -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 ;
Quoted 3 lines
/* Disable GPIO forwarding */
for (i = 0; i <gc->ngpio; i++)
Regards,
Julien