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

committed by
Mauro Carvalho Chehab

parent
85f5fe3962
commit
0e8025b9f6
@@ -333,7 +333,7 @@ static int pvr2_g_audio(struct file *file, void *priv, struct v4l2_audio *vin)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int pvr2_s_audio(struct file *file, void *priv, struct v4l2_audio *vout)
|
||||
static int pvr2_s_audio(struct file *file, void *priv, const struct v4l2_audio *vout)
|
||||
{
|
||||
if (vout->index)
|
||||
return -EINVAL;
|
||||
|
Reference in New Issue
Block a user