From: Jacopo Mondi Date: Thu, 19 Nov 2020 16:35:49 +0000 (+0100) Subject: media: ov5647: Support VIDIOC_SUBSCRIBE_EVENT X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=dc3373081396f5317f8f0b593a2cb644c4e1786e;p=uclinux-h8%2Flinux.git media: ov5647: Support VIDIOC_SUBSCRIBE_EVENT The driver reports the V4L2_SUBDEV_FL_HAS_EVENTS flag but does not support subscribing and unsubscribing to events. Signed-off-by: Jacopo Mondi Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/i2c/ov5647.c b/drivers/media/i2c/ov5647.c index 963f51656266..be40c60ab7ee 100644 --- a/drivers/media/i2c/ov5647.c +++ b/drivers/media/i2c/ov5647.c @@ -24,6 +24,7 @@ #include #include #include +#include #include #include #include @@ -979,6 +980,8 @@ static int ov5647_sensor_set_register(struct v4l2_subdev *sd, /* Subdev core operations registration */ static const struct v4l2_subdev_core_ops ov5647_subdev_core_ops = { + .subscribe_event = v4l2_ctrl_subdev_subscribe_event, + .unsubscribe_event = v4l2_event_subdev_unsubscribe, #ifdef CONFIG_VIDEO_ADV_DEBUG .g_register = ov5647_sensor_get_register, .s_register = ov5647_sensor_set_register,