[PATCH -next] media/i2c: fix mt9v111.c build error

From: Randy Dunlap
Date: Tue Aug 07 2018 - 11:13:51 EST


From: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>

Fix build error in mt9v111.c when
# CONFIG_VIDEO_V4L2_SUBDEV_API is not set

../drivers/media/i2c/mt9v111.c: In function â__mt9v111_get_pad_formatâ:
../drivers/media/i2c/mt9v111.c:801:3: error: implicit declaration of function âv4l2_subdev_get_try_formatâ [-Werror=implicit-function-declaration]
return v4l2_subdev_get_try_format(&mt9v111->sd, cfg, pad);

Signed-off-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
Cc: Jacopo Mondi <jacopo@xxxxxxxxxx>
---
drivers/media/i2c/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-next-20180807.orig/drivers/media/i2c/Kconfig
+++ linux-next-20180807/drivers/media/i2c/Kconfig
@@ -875,7 +875,7 @@ config VIDEO_MT9V032

config VIDEO_MT9V111
tristate "Aptina MT9V111 sensor support"
- depends on I2C && VIDEO_V4L2
+ depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API
depends on MEDIA_CAMERA_SUPPORT
help
This is a Video4Linux2 sensor driver for the Aptina/Micron