aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/i2c
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@linux.intel.com>2018-04-12 06:18:11 -0400
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2018-04-23 13:58:31 -0400
commit65b0ae5e3ee5fccb2311652d91249a1fff3522d8 (patch)
tree1abaefeafcec43540876f1e039d1de195a675689 /drivers/media/i2c
parentmedia: ov7740: Fix control handler error at the end of control init (diff)
downloadlinux-dev-65b0ae5e3ee5fccb2311652d91249a1fff3522d8.tar.xz
linux-dev-65b0ae5e3ee5fccb2311652d91249a1fff3522d8.zip
media: ov7740: Set subdev HAS_EVENT flag
The driver has event support implemented but fails to set the flag enabling event support. Set the flag to enable control events. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/i2c')
-rw-r--r--drivers/media/i2c/ov7740.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/ov7740.c b/drivers/media/i2c/ov7740.c
index 3dad33c6180f..605f3e25ad82 100644
--- a/drivers/media/i2c/ov7740.c
+++ b/drivers/media/i2c/ov7740.c
@@ -1086,7 +1086,7 @@ static int ov7740_probe(struct i2c_client *client,
#ifdef CONFIG_VIDEO_V4L2_SUBDEV_API
sd->internal_ops = &ov7740_subdev_internal_ops;
- sd->flags |= V4L2_SUBDEV_FL_HAS_DEVNODE;
+ sd->flags |= V4L2_SUBDEV_FL_HAS_DEVNODE | V4L2_SUBDEV_FL_HAS_EVENTS;
#endif
#if defined(CONFIG_MEDIA_CONTROLLER)