]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
media: ov2740: select regmap
authorSergey Senozhatsky <sergey.senozhatsky@gmail.com>
Wed, 30 Sep 2020 01:13:22 +0000 (03:13 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 16 Nov 2020 09:31:12 +0000 (10:31 +0100)
Fix OV2740 build breakage by selecting REGMAP_I2C config:

ov2740.c:1011:23: error: variable has incomplete type 'struct regmap_config'
        struct regmap_config regmap_config = { };
                             ^
ov2740.c:1011:9: note: forward declaration of 'struct regmap_config'
        struct regmap_config regmap_config = { };
               ^
ov2740.c:1028:11: error: implicit declaration of function 'devm_regmap_init_i2c'
        regmap = devm_regmap_init_i2c(client, &regmap_config);

Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/Kconfig

index 878f66ef2719f3de0285f5bf34cfa860b8b954ef..c64326ca331cd88958f65e5be8e2f44a601dad8a 100644 (file)
@@ -877,6 +877,7 @@ config VIDEO_OV2740
        select MEDIA_CONTROLLER
        select VIDEO_V4L2_SUBDEV_API
        select V4L2_FWNODE
+       select REGMAP_I2C
        help
          This is a Video4Linux2 sensor driver for the OmniVision
          OV2740 camera.