media: i2c: imx219: Declare that the driver can create events
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Mon, 20 Apr 2020 10:01:21 +0000 (11:01 +0100)
committerpopcornmix <popcornmix@gmail.com>
Wed, 1 Jul 2020 15:33:54 +0000 (16:33 +0100)
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>
drivers/media/i2c/imx219.c

index 988ebf6..b84fc19 100644 (file)
@@ -1573,7 +1573,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 pads */