diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2012-09-04 10:59:31 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-09-26 09:50:12 -0400 |
commit | 0e8025b9f6011a6bd69d01080d584bc95a89d02e (patch) | |
tree | 228712a97a37d887d1eca9c17f83ada102d53291 /include/media | |
parent | 85f5fe3962ca6780e5368feffe32f3b15e953e1f (diff) |
[media] v4l2: make vidioc_s_audio const
Write-only ioctls should have a const argument in the ioctl op.
Do this conversion for vidioc_s_audio.
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')
-rw-r--r-- | include/media/v4l2-ioctl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/media/v4l2-ioctl.h b/include/media/v4l2-ioctl.h index 3eef4de0ca33..babbe09527cd 100644 --- a/include/media/v4l2-ioctl.h +++ b/include/media/v4l2-ioctl.h | |||
@@ -167,7 +167,7 @@ struct v4l2_ioctl_ops { | |||
167 | int (*vidioc_g_audio) (struct file *file, void *fh, | 167 | int (*vidioc_g_audio) (struct file *file, void *fh, |
168 | struct v4l2_audio *a); | 168 | struct v4l2_audio *a); |
169 | int (*vidioc_s_audio) (struct file *file, void *fh, | 169 | int (*vidioc_s_audio) (struct file *file, void *fh, |
170 | struct v4l2_audio *a); | 170 | const struct v4l2_audio *a); |
171 | 171 | ||
172 | /* Audio out ioctls */ | 172 | /* Audio out ioctls */ |
173 | int (*vidioc_enumaudout) (struct file *file, void *fh, | 173 | int (*vidioc_enumaudout) (struct file *file, void *fh, |