]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
media: i2c: lt6911uxe: Fix Kconfig dependencies:
authorArnd Bergmann <arnd@arndb.de>
Fri, 14 Mar 2025 15:46:30 +0000 (16:46 +0100)
committerHans Verkuil <hverkuil@xs4all.nl>
Mon, 7 Apr 2025 06:10:39 +0000 (08:10 +0200)
The new driver fails to build if I2C is disabled:

drivers/media/i2c/lt6911uxe.c:703:1: error: data definition has no type or storage class [-Werror]
  703 | module_i2c_driver(lt6911uxe_i2c_driver);

or if I2C is on but V4L2_CCI_I2C is not:

ERROR: modpost: "cci_write" [drivers/media/i2c/lt6911uxe.ko] undefined!
ERROR: modpost: "cci_read" [drivers/media/i2c/lt6911uxe.ko] undefined!

For both by adding a dependency on I2C and selecting V4L2_CCI_I2C, which
follows the common practice for these.

Fixes: e49563c3be09 ("media: i2c: add lt6911uxe hdmi bridge driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/i2c/Kconfig

index e576b213084d232e90b7e556a7a855a3bb95544c..b06365d02ef1efa4ff7332cce3d48c67b6560fe2 100644 (file)
@@ -1149,8 +1149,9 @@ config VIDEO_ISL7998X
 
 config VIDEO_LT6911UXE
        tristate "Lontium LT6911UXE decoder"
-       depends on ACPI && VIDEO_DEV
+       depends on ACPI && VIDEO_DEV && I2C
        select V4L2_FWNODE
+       select V4L2_CCI_I2C
        help
          This is a Video4Linux2 sensor-level driver for the Lontium
          LT6911UXE HDMI to MIPI CSI-2 bridge.