Skip to contentSkip to conversation

media: i2c: ov2659: add VIDEO_V4L2_SUBDEV_API dependency

PATCH In review Lad Prabhakar 2 participants 2 messages Apr 10, 2015 – May 1, 2015 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

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.

---
 drivers/media/i2c/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/i2c/Kconfig +1 -1
index 6f30ea7..8b05681 100644
@@ -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
#1 lore raw

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_API for VIDEO_OV2659 so 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
---
 drivers/media/i2c/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/i2c/Kconfig +1 -1
index 6f30ea7..8b05681 100644
@@ -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