[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>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
ec6f432810
commit
85f5fe3962
@@ -273,9 +273,9 @@ struct v4l2_ioctl_ops {
|
||||
struct v4l2_dv_timings_cap *cap);
|
||||
|
||||
int (*vidioc_subscribe_event) (struct v4l2_fh *fh,
|
||||
struct v4l2_event_subscription *sub);
|
||||
const struct v4l2_event_subscription *sub);
|
||||
int (*vidioc_unsubscribe_event)(struct v4l2_fh *fh,
|
||||
struct v4l2_event_subscription *sub);
|
||||
const struct v4l2_event_subscription *sub);
|
||||
|
||||
/* For other private ioctls */
|
||||
long (*vidioc_default) (struct file *file, void *fh,
|
||||
|
Reference in New Issue
Block a user