From: Dave Stevenson Date: Mon, 16 Nov 2020 15:42:38 +0000 (+0100) Subject: media: i2c: imx219: Declare that the driver can create events X-Git-Tag: v5.11-rc1~203^2~250 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=defbac5d79b02e5c006e08f02a8f6fdcdca1a5db;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Dafna Hirschfeld Reviewed-by: Laurent Pinchart Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/i2c/imx219.c b/drivers/media/i2c/imx219.c index d5349d1ca4855..2b17ec0ddbbef 100644 --- a/drivers/media/i2c/imx219.c +++ b/drivers/media/i2c/imx219.c @@ -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 */