aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/pci/ivtv/ivtv-ioctl.c
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2013-03-19 03:09:26 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-03-24 05:25:34 -0400
commitb530a447bb588fdf43fdf4eb909e4ee1921d47ac (patch)
tree8c9f6abb0f0c07ceea984a87fd80e9e65e7d483b /drivers/media/pci/ivtv/ivtv-ioctl.c
parent69aa6f4ec669b9121057cc9e32cb10b5f744f6d6 (diff)
[media] v4l2: add const to argument of write-only s_frequency ioctl
This ioctl is defined as IOW, so pass the argument as const. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/pci/ivtv/ivtv-ioctl.c')
-rw-r--r--drivers/media/pci/ivtv/ivtv-ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/pci/ivtv/ivtv-ioctl.c b/drivers/media/pci/ivtv/ivtv-ioctl.c
index 7a8b0d0b6127..e6258b68d22c 100644
--- a/drivers/media/pci/ivtv/ivtv-ioctl.c
+++ b/drivers/media/pci/ivtv/ivtv-ioctl.c
@@ -1078,7 +1078,7 @@ static int ivtv_g_frequency(struct file *file, void *fh, struct v4l2_frequency *
1078 return 0; 1078 return 0;
1079} 1079}
1080 1080
1081int ivtv_s_frequency(struct file *file, void *fh, struct v4l2_frequency *vf) 1081int ivtv_s_frequency(struct file *file, void *fh, const struct v4l2_frequency *vf)
1082{ 1082{
1083 struct ivtv *itv = fh2id(fh)->itv; 1083 struct ivtv *itv = fh2id(fh)->itv;
1084 struct ivtv_stream *s = &itv->streams[fh2id(fh)->type]; 1084 struct ivtv_stream *s = &itv->streams[fh2id(fh)->type];