87e100061734f3e41d5d2d58794a32c2de4114f6
[openwrt/openwrt.git] /
1 From 8a251d243fa3931f3b03677f4f58ceb728f42e99 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Mon, 20 Apr 2020 11:01:21 +0100
4 Subject: [PATCH] media: i2c: imx219: Declare that the driver can
5 create events
6
7 The flag V4L2_SUBDEV_FL_HAS_EVENTS is required if the subdev can
8 generate events. It can create events from the ctrl handler, therefore
9 this is required.
10
11 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
12 ---
13 drivers/media/i2c/imx219.c | 3 ++-
14 1 file changed, 2 insertions(+), 1 deletion(-)
15
16 --- a/drivers/media/i2c/imx219.c
17 +++ b/drivers/media/i2c/imx219.c
18 @@ -1591,7 +1591,8 @@ static int imx219_probe(struct i2c_clien
19
20 /* Initialize subdev */
21 imx219->sd.internal_ops = &imx219_internal_ops;
22 - imx219->sd.flags |= V4L2_SUBDEV_FL_HAS_DEVNODE;
23 + imx219->sd.flags |= V4L2_SUBDEV_FL_HAS_DEVNODE |
24 + V4L2_SUBDEV_FL_HAS_EVENTS;
25 imx219->sd.entity.function = MEDIA_ENT_F_CAM_SENSOR;
26
27 /* Initialize source pads */