mirror of
https://github.com/torvalds/linux.git
synced 2024-12-21 02:21:36 +00:00
media: i2c: imx219: Declare that the driver can create events
The flag V4L2_SUBDEV_FL_HAS_EVENTS is required if the subdev can generate events. It can create events from the ctrl handler, therefore this is required. Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com> Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
8b7c7828a3
commit
defbac5d79
@ -1494,7 +1494,8 @@ static int imx219_probe(struct i2c_client *client)
|
||||
|
||||
/* Initialize subdev */
|
||||
imx219->sd.internal_ops = &imx219_internal_ops;
|
||||
imx219->sd.flags |= V4L2_SUBDEV_FL_HAS_DEVNODE;
|
||||
imx219->sd.flags |= V4L2_SUBDEV_FL_HAS_DEVNODE |
|
||||
V4L2_SUBDEV_FL_HAS_EVENTS;
|
||||
imx219->sd.entity.function = MEDIA_ENT_F_CAM_SENSOR;
|
||||
|
||||
/* Initialize source pad */
|
||||
|
Loading…
Reference in New Issue
Block a user