aboutsummaryrefslogtreecommitdiffstats
path: root/include/media/v4l2-ioctl.h
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2012-09-04 09:26:45 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-09-26 09:42:36 -0400
commite6eb28c2207b9397d0ab56e238865a4ee95b7ef9 (patch)
tree5914411d203c71b6b1446e2e4ad592c92331f6da /include/media/v4l2-ioctl.h
parent06fce2861d5a4ebcff65e253b2b3e4406dc3ab24 (diff)
[media] v4l2: make vidioc_s_fbuf const
Write-only ioctls should have a const argument in the ioctl op. Do this conversion for vidioc_s_fbuf. 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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/media/v4l2-ioctl.h b/include/media/v4l2-ioctl.h
index 0bc1444e50ee..73ae24a41cb1 100644
--- a/include/media/v4l2-ioctl.h
+++ b/include/media/v4l2-ioctl.h
@@ -120,7 +120,7 @@ struct v4l2_ioctl_ops {
120 int (*vidioc_g_fbuf) (struct file *file, void *fh, 120 int (*vidioc_g_fbuf) (struct file *file, void *fh,
121 struct v4l2_framebuffer *a); 121 struct v4l2_framebuffer *a);
122 int (*vidioc_s_fbuf) (struct file *file, void *fh, 122 int (*vidioc_s_fbuf) (struct file *file, void *fh,
123 struct v4l2_framebuffer *a); 123 const struct v4l2_framebuffer *a);
124 124
125 /* Stream on/off */ 125 /* Stream on/off */
126 int (*vidioc_streamon) (struct file *file, void *fh, enum v4l2_buf_type i); 126 int (*vidioc_streamon) (struct file *file, void *fh, enum v4l2_buf_type i);