diff options
author | Sylwester Nawrocki <sylvester.nawrocki@gmail.com> | 2013-01-22 16:58:57 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-02-05 12:04:55 -0500 |
commit | 4f4d14b70a29c679dd53e367b0d9b007a7117ee3 (patch) | |
tree | 3d2acb71e2ea19fe4ee73e4b8c436d68f7aeea88 /include/media/v4l2-event.h | |
parent | 2ccbe779bcdee130ea7f1525670dc9d60318a981 (diff) |
[media] V4L: Add v4l2_event_subdev_unsubscribe() helper function
Add a v4l2 core helper function that can be used as the subdev
.unsubscribe_event handler. This allows to eliminate some
boilerplate from drivers that are only handling the control events.
Signed-off-by: Sylwester Nawrocki <sylvester.nawrocki@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media/v4l2-event.h')
-rw-r--r-- | include/media/v4l2-event.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/media/v4l2-event.h b/include/media/v4l2-event.h index eff85f934b24..be05d019de25 100644 --- a/include/media/v4l2-event.h +++ b/include/media/v4l2-event.h | |||
@@ -64,6 +64,7 @@ | |||
64 | */ | 64 | */ |
65 | 65 | ||
66 | struct v4l2_fh; | 66 | struct v4l2_fh; |
67 | struct v4l2_subdev; | ||
67 | struct v4l2_subscribed_event; | 68 | struct v4l2_subscribed_event; |
68 | struct video_device; | 69 | struct video_device; |
69 | 70 | ||
@@ -129,5 +130,6 @@ int v4l2_event_subscribe(struct v4l2_fh *fh, | |||
129 | int v4l2_event_unsubscribe(struct v4l2_fh *fh, | 130 | int v4l2_event_unsubscribe(struct v4l2_fh *fh, |
130 | const struct v4l2_event_subscription *sub); | 131 | const struct v4l2_event_subscription *sub); |
131 | void v4l2_event_unsubscribe_all(struct v4l2_fh *fh); | 132 | void v4l2_event_unsubscribe_all(struct v4l2_fh *fh); |
132 | 133 | int v4l2_event_subdev_unsubscribe(struct v4l2_subdev *sd, struct v4l2_fh *fh, | |
134 | struct v4l2_event_subscription *sub); | ||
133 | #endif /* V4L2_EVENT_H */ | 135 | #endif /* V4L2_EVENT_H */ |