media: i2c: ov2659: add VIDEO_V4L2_SUBDEV_API dependency
PATCH 1/1 media: i2c: ov2659: add VIDEO_V4L2_SUBDEV_API dependency
From: "Lad, Prabhakar" <[email protected]>
this patch adds dependency of VIDEO_V4L2_SUBDEV_API for VIDEO_OV2659 so that it doesn't complain for random config builds.
Reported-by Randy Dunlap <[email protected]>
Signed-off-by Lad, Prabhakar <[email protected]>
--- drivers/media/i2c/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/i2c/Kconfig +1 -1
@@ -468,7 +468,7 @@ config VIDEO_SMIAPP_PLL config VIDEO_OV2659 tristate "OmniVision OV2659 sensor support" - depends on VIDEO_V4L2 && I2C + depends on VIDEO_V4L2 && I2C && VIDEO_V4L2_SUBDEV_API depends on MEDIA_CAMERA_SUPPORT ---help--- This is a Video4Linux2 sensor-level driver for the OmniVision
Signature · 1 line
2.1.0
Em Fri, 10 Apr 2015 22:28:33 +0100
Lad Prabhakar <[email protected]> escreveu:
Quoted 5 lines
From: "Lad, Prabhakar" <[email protected]>
this patch adds dependency of
VIDEO_V4L2_SUBDEV_APIforVIDEO_OV2659so that it doesn't complain for random config builds.
Actually, this doesn't seem right. Why should this driver depend on an optional API? It should be possible to use it on some bridge driver that doesn't expose the subdev API. So, please fix it the other way, by making subdev API optional on it.
Regards,
Mauro
Quoted 20 lines
Reported-by Randy Dunlap <[email protected]>Signed-off-by Lad, Prabhakar <[email protected]>--- drivers/media/i2c/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/media/i2c/Kconfig +1
-1@@ -468,7 +468,7 @@ config VIDEO_SMIAPP_PLL config VIDEO_OV2659 tristate "OmniVision OV2659 sensor support" - depends on VIDEO_V4L2 && I2C + depends on VIDEO_V4L2 && I2C && VIDEO_V4L2_SUBDEV_API depends on MEDIA_CAMERA_SUPPORT ---help--- This is a Video4Linux2 sensor-level driver for the OmniVision