summaryrefslogtreecommitdiffstats
path: root/drivers/media/radio/si4713-i2c.c
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2012-09-04 12:08:47 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-09-26 10:58:02 -0300
commit3f70e1f598a6be4277e71516a98457fd3bddfbd0 (patch)
tree8aee834b6bb6984fe578cdf5975755c939455f0a /drivers/media/radio/si4713-i2c.c
parentba9425bce9e162eee0741d9a94e0d6f68e0242ab (diff)
downloadblackbird-obmc-linux-3f70e1f598a6be4277e71516a98457fd3bddfbd0.tar.gz
blackbird-obmc-linux-3f70e1f598a6be4277e71516a98457fd3bddfbd0.zip
[media] v4l2: make vidioc_s_modulator const
Write-only ioctls should have a const argument in the ioctl op. Do this conversion for vidioc_s_modulator. 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/radio/si4713-i2c.c')
-rw-r--r--drivers/media/radio/si4713-i2c.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/radio/si4713-i2c.c b/drivers/media/radio/si4713-i2c.c
index b898c8925ab7..a9e6d17015ef 100644
--- a/drivers/media/radio/si4713-i2c.c
+++ b/drivers/media/radio/si4713-i2c.c
@@ -1213,7 +1213,7 @@ exit:
}
static int si4713_s_frequency(struct v4l2_subdev *sd, struct v4l2_frequency *f);
-static int si4713_s_modulator(struct v4l2_subdev *sd, struct v4l2_modulator *);
+static int si4713_s_modulator(struct v4l2_subdev *sd, const struct v4l2_modulator *);
/*
* si4713_setup - Sets the device up with current configuration.
* @sdev: si4713_device structure for the device we are communicating
@@ -1873,7 +1873,7 @@ exit:
}
/* si4713_s_modulator - set modulator attributes */
-static int si4713_s_modulator(struct v4l2_subdev *sd, struct v4l2_modulator *vm)
+static int si4713_s_modulator(struct v4l2_subdev *sd, const struct v4l2_modulator *vm)
{
struct si4713_device *sdev = to_si4713_device(sd);
int rval = 0;
OpenPOWER on IntegriCloud