diff options
-rw-r--r-- | drivers/media/v4l2-core/v4l2-event.c | 7 | ||||
-rw-r--r-- | include/media/v4l2-event.h | 4 |
2 files changed, 10 insertions, 1 deletions
diff --git a/drivers/media/v4l2-core/v4l2-event.c b/drivers/media/v4l2-core/v4l2-event.c index c72009218152..86dcb5483c42 100644 --- a/drivers/media/v4l2-core/v4l2-event.c +++ b/drivers/media/v4l2-core/v4l2-event.c | |||
@@ -311,3 +311,10 @@ int v4l2_event_unsubscribe(struct v4l2_fh *fh, | |||
311 | return 0; | 311 | return 0; |
312 | } | 312 | } |
313 | EXPORT_SYMBOL_GPL(v4l2_event_unsubscribe); | 313 | EXPORT_SYMBOL_GPL(v4l2_event_unsubscribe); |
314 | |||
315 | int v4l2_event_subdev_unsubscribe(struct v4l2_subdev *sd, struct v4l2_fh *fh, | ||
316 | struct v4l2_event_subscription *sub) | ||
317 | { | ||
318 | return v4l2_event_unsubscribe(fh, sub); | ||
319 | } | ||
320 | EXPORT_SYMBOL_GPL(v4l2_event_subdev_unsubscribe); | ||
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 */ |