diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2012-09-04 09:26:45 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-09-26 09:42:36 -0400 |
commit | e6eb28c2207b9397d0ab56e238865a4ee95b7ef9 (patch) | |
tree | 5914411d203c71b6b1446e2e4ad592c92331f6da /drivers/media/common | |
parent | 06fce2861d5a4ebcff65e253b2b3e4406dc3ab24 (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 'drivers/media/common')
-rw-r--r-- | drivers/media/common/saa7146/saa7146_video.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/common/saa7146/saa7146_video.c b/drivers/media/common/saa7146/saa7146_video.c index 6d14785d474..4143d61f79b 100644 --- a/drivers/media/common/saa7146/saa7146_video.c +++ b/drivers/media/common/saa7146/saa7146_video.c | |||
@@ -479,7 +479,7 @@ static int vidioc_g_fbuf(struct file *file, void *fh, struct v4l2_framebuffer *f | |||
479 | return 0; | 479 | return 0; |
480 | } | 480 | } |
481 | 481 | ||
482 | static int vidioc_s_fbuf(struct file *file, void *fh, struct v4l2_framebuffer *fb) | 482 | static int vidioc_s_fbuf(struct file *file, void *fh, const struct v4l2_framebuffer *fb) |
483 | { | 483 | { |
484 | struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; | 484 | struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; |
485 | struct saa7146_vv *vv = dev->vv_data; | 485 | struct saa7146_vv *vv = dev->vv_data; |