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

committed by
Mauro Carvalho Chehab

parent
06fce2861d
commit
e6eb28c220
@@ -860,7 +860,7 @@ int vidioc_g_fbuf(struct file *file, void *priv, struct v4l2_framebuffer *arg)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int vidioc_s_fbuf(struct file *file, void *priv, struct v4l2_framebuffer *arg)
|
||||
int vidioc_s_fbuf(struct file *file, void *priv, const struct v4l2_framebuffer *arg)
|
||||
{
|
||||
struct viu_fh *fh = priv;
|
||||
struct viu_dev *dev = fh->dev;
|
||||
|
Reference in New Issue
Block a user