aboutsummaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2012-04-08 11:59:47 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-05-07 15:29:35 -0400
commit3e366149b8957f809081e5f0f70d209175127e29 (patch)
tree7ba69744a1bacd7b490d02d02d265e42f4c4e7a9 /include/media
parentc53c2549333b340e2662dc64ec81323476b69a97 (diff)
[media] v4l2-ctrls: Use v4l2_subscribed_event_ops
Signed-off-by: Hans de Goede <hdegoede@redhat.com> [hans.verkuil@cisco.com: Fix a locking bug] Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media')
-rw-r--r--include/media/v4l2-ctrls.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/media/v4l2-ctrls.h b/include/media/v4l2-ctrls.h
index 8920f8210eab..c6f6b4c2c5f2 100644
--- a/include/media/v4l2-ctrls.h
+++ b/include/media/v4l2-ctrls.h
@@ -491,10 +491,9 @@ s32 v4l2_ctrl_g_ctrl(struct v4l2_ctrl *ctrl);
491int v4l2_ctrl_s_ctrl(struct v4l2_ctrl *ctrl, s32 val); 491int v4l2_ctrl_s_ctrl(struct v4l2_ctrl *ctrl, s32 val);
492 492
493/* Internal helper functions that deal with control events. */ 493/* Internal helper functions that deal with control events. */
494void v4l2_ctrl_add_event(struct v4l2_ctrl *ctrl, 494extern const struct v4l2_subscribed_event_ops v4l2_ctrl_sub_ev_ops;
495 struct v4l2_subscribed_event *sev); 495void v4l2_ctrl_replace(struct v4l2_event *old, const struct v4l2_event *new);
496void v4l2_ctrl_del_event(struct v4l2_ctrl *ctrl, 496void v4l2_ctrl_merge(const struct v4l2_event *old, struct v4l2_event *new);
497 struct v4l2_subscribed_event *sev);
498 497
499struct file; 498struct file;
500/* Can be used as a vidioc_log_status function that just dumps all controls 499/* Can be used as a vidioc_log_status function that just dumps all controls