summaryrefslogtreecommitdiffstats
path: root/drivers/media/radio/tef6862.c
diff options
context:
space:
mode:
authorHans Verkuil2013-03-19 08:09:26 +0100
committerMauro Carvalho Chehab2013-03-24 10:25:34 +0100
commitb530a447bb588fdf43fdf4eb909e4ee1921d47ac (patch)
tree8c9f6abb0f0c07ceea984a87fd80e9e65e7d483b /drivers/media/radio/tef6862.c
parent[media] drivers: staging: davinci_vpfe: use resource_size() (diff)
downloadkernel-qcow2-linux-b530a447bb588fdf43fdf4eb909e4ee1921d47ac.tar.gz
kernel-qcow2-linux-b530a447bb588fdf43fdf4eb909e4ee1921d47ac.tar.xz
kernel-qcow2-linux-b530a447bb588fdf43fdf4eb909e4ee1921d47ac.zip
[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/radio/tef6862.c')
-rw-r--r--drivers/media/radio/tef6862.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/radio/tef6862.c b/drivers/media/radio/tef6862.c
index b18c2dc268ba..867395568f92 100644
--- a/drivers/media/radio/tef6862.c
+++ b/drivers/media/radio/tef6862.c
@@ -101,7 +101,7 @@ static int tef6862_s_tuner(struct v4l2_subdev *sd, struct v4l2_tuner *v)
return v->index ? -EINVAL : 0;
}
-static int tef6862_s_frequency(struct v4l2_subdev *sd, struct v4l2_frequency *f)
+static int tef6862_s_frequency(struct v4l2_subdev *sd, const struct v4l2_frequency *f)
{
struct tef6862_state *state = to_state(sd);
struct i2c_client *client = v4l2_get_subdevdata(sd);