diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2012-09-17 04:05:25 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-09-26 09:43:04 -0400 |
commit | d88aab53bd267c9fb0b0451e9acae68091703eab (patch) | |
tree | 5da9b54e8fe4173a0a25b87bc350884d277f9bac /drivers/media/pci | |
parent | e6eb28c2207b9397d0ab56e238865a4ee95b7ef9 (diff) |
[media] v4l2: make vidioc_s_jpegcomp const
Write-only ioctls should have a const argument in the ioctl op.
Do this conversion for vidioc_s_jpegcomp.
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/pci')
-rw-r--r-- | drivers/media/pci/zoran/zoran_driver.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/pci/zoran/zoran_driver.c b/drivers/media/pci/zoran/zoran_driver.c index f91b551e6a52..9ecd7d711f27 100644 --- a/drivers/media/pci/zoran/zoran_driver.c +++ b/drivers/media/pci/zoran/zoran_driver.c | |||
@@ -2674,7 +2674,7 @@ static int zoran_g_jpegcomp(struct file *file, void *__fh, | |||
2674 | } | 2674 | } |
2675 | 2675 | ||
2676 | static int zoran_s_jpegcomp(struct file *file, void *__fh, | 2676 | static int zoran_s_jpegcomp(struct file *file, void *__fh, |
2677 | struct v4l2_jpegcompression *params) | 2677 | const struct v4l2_jpegcompression *params) |
2678 | { | 2678 | { |
2679 | struct zoran_fh *fh = __fh; | 2679 | struct zoran_fh *fh = __fh; |
2680 | struct zoran *zr = fh->zr; | 2680 | struct zoran *zr = fh->zr; |
@@ -2701,7 +2701,7 @@ static int zoran_s_jpegcomp(struct file *file, void *__fh, | |||
2701 | if (!fh->buffers.allocated) | 2701 | if (!fh->buffers.allocated) |
2702 | fh->buffers.buffer_size = | 2702 | fh->buffers.buffer_size = |
2703 | zoran_v4l2_calc_bufsize(&fh->jpg_settings); | 2703 | zoran_v4l2_calc_bufsize(&fh->jpg_settings); |
2704 | fh->jpg_settings.jpg_comp = *params = settings.jpg_comp; | 2704 | fh->jpg_settings.jpg_comp = settings.jpg_comp; |
2705 | sjpegc_unlock_and_return: | 2705 | sjpegc_unlock_and_return: |
2706 | mutex_unlock(&zr->resource_lock); | 2706 | mutex_unlock(&zr->resource_lock); |
2707 | 2707 | ||