]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
media: i2c: max96717: Drop unused field assignment
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 31 Mar 2025 07:01:52 +0000 (10:01 +0300)
committerHans Verkuil <hverkuil@xs4all.nl>
Mon, 30 Jun 2025 06:47:40 +0000 (08:47 +0200)
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>
Reviewed-by: Julien Massot <julien.massot@collabora.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/i2c/Kconfig
drivers/media/i2c/max96717.c

index e68202954a8fd4711d108cf295d5771246fbc406..ddd91ea9165c12461748c170664757d0880e0670 100644 (file)
@@ -1684,7 +1684,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
index a503a55fe8afa9bdda8fc9b1c2b0e7ebd02afe1c..015e42fbe24629cc0268825ec640532a145e563b 100644 (file)
@@ -357,7 +357,6 @@ static int max96717_gpiochip_probe(struct max96717_priv *priv)
        gc->direction_output = max96717_gpio_direction_out;
        gc->set_rv = max96717_gpiochip_set;
        gc->get = max96717_gpiochip_get;
-       gc->of_gpio_n_cells = 2;
 
        /* Disable GPIO forwarding */
        for (i = 0; i < gc->ngpio; i++)