diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2012-09-04 10:46:09 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-09-26 09:48:52 -0400 |
commit | 85f5fe3962ca6780e5368feffe32f3b15e953e1f (patch) | |
tree | e3a5441ee86e62d3ca8423308f32c7a32ae68677 /include/media/v4l2-ioctl.h | |
parent | ec6f4328108f1c83d5ac907c0d978fa886ef9627 (diff) |
[media] v4l2: make vidioc_(un)subscribe_event const
Write-only ioctls should have a const argument in the ioctl op.
Do this conversion for vidioc_(un)subscribe_event.
Adding const for write-only ioctls was decided during the 2012 Media Workshop.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media/v4l2-ioctl.h')
-rw-r--r-- | include/media/v4l2-ioctl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/media/v4l2-ioctl.h b/include/media/v4l2-ioctl.h index 865f95d92ba8..3eef4de0ca33 100644 --- a/include/media/v4l2-ioctl.h +++ b/include/media/v4l2-ioctl.h | |||
@@ -273,9 +273,9 @@ struct v4l2_ioctl_ops { | |||
273 | struct v4l2_dv_timings_cap *cap); | 273 | struct v4l2_dv_timings_cap *cap); |
274 | 274 | ||
275 | int (*vidioc_subscribe_event) (struct v4l2_fh *fh, | 275 | int (*vidioc_subscribe_event) (struct v4l2_fh *fh, |
276 | struct v4l2_event_subscription *sub); | 276 | const struct v4l2_event_subscription *sub); |
277 | int (*vidioc_unsubscribe_event)(struct v4l2_fh *fh, | 277 | int (*vidioc_unsubscribe_event)(struct v4l2_fh *fh, |
278 | struct v4l2_event_subscription *sub); | 278 | const struct v4l2_event_subscription *sub); |
279 | 279 | ||
280 | /* For other private ioctls */ | 280 | /* For other private ioctls */ |
281 | long (*vidioc_default) (struct file *file, void *fh, | 281 | long (*vidioc_default) (struct file *file, void *fh, |