fa700a81a3b91cf999935bb8411b184566d16513
[openwrt/openwrt.git] /
1 From 58694d6b23e4138640042fd779df95c425be825b 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 @@ -1573,7 +1573,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 */