[<prev] [next>] [day] [month] [year] [list]
Message-ID: <61037652-d37e-387a-7f32-7730c03e1e45@infradead.org>
Date: Tue, 7 Aug 2018 08:13:41 -0700
From: Randy Dunlap <rdunlap@...radead.org>
To: linux-media <linux-media@...r.kernel.org>,
LKML <linux-kernel@...r.kernel.org>
Cc: Jacopo Mondi <jacopo@...ndi.org>,
Mauro Carvalho Chehab <mchehab@...nel.org>
Subject: [PATCH -next] media/i2c: fix mt9v111.c build error
From: Randy Dunlap <rdunlap@...radead.org>
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@...radead.org>
Cc: Jacopo Mondi <jacopo@...ndi.org>
---
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
Powered by blists - more mailing lists