diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2013-03-15 05:10:06 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-03-24 05:31:23 -0400 |
commit | 2f73c7c582a685b3198b974cd6d964d0338f8ab5 (patch) | |
tree | d95d1dd1665bd59d09dfd7455c8f096a6fb29352 /drivers/media/pci/bt8xx | |
parent | b530a447bb588fdf43fdf4eb909e4ee1921d47ac (diff) |
[media] v4l2: add const to argument of write-only s_tuner ioctl
This ioctl is defined as IOW, so pass the argument as const.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Alexey Klimov <klimov.linux@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/pci/bt8xx')
-rw-r--r-- | drivers/media/pci/bt8xx/bttv-driver.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/drivers/media/pci/bt8xx/bttv-driver.c b/drivers/media/pci/bt8xx/bttv-driver.c index 3156daf2c804..7aea24bf3a37 100644 --- a/drivers/media/pci/bt8xx/bttv-driver.c +++ b/drivers/media/pci/bt8xx/bttv-driver.c | |||
@@ -1820,7 +1820,7 @@ static int bttv_s_input(struct file *file, void *priv, unsigned int i) | |||
1820 | } | 1820 | } |
1821 | 1821 | ||
1822 | static int bttv_s_tuner(struct file *file, void *priv, | 1822 | static int bttv_s_tuner(struct file *file, void *priv, |
1823 | struct v4l2_tuner *t) | 1823 | const struct v4l2_tuner *t) |
1824 | { | 1824 | { |
1825 | struct bttv_fh *fh = priv; | 1825 | struct bttv_fh *fh = priv; |
1826 | struct bttv *btv = fh->btv; | 1826 | struct bttv *btv = fh->btv; |
@@ -1830,8 +1830,11 @@ static int bttv_s_tuner(struct file *file, void *priv, | |||
1830 | 1830 | ||
1831 | bttv_call_all(btv, tuner, s_tuner, t); | 1831 | bttv_call_all(btv, tuner, s_tuner, t); |
1832 | 1832 | ||
1833 | if (btv->audio_mode_gpio) | 1833 | if (btv->audio_mode_gpio) { |
1834 | btv->audio_mode_gpio(btv, t, 1); | 1834 | struct v4l2_tuner copy = *t; |
1835 | |||
1836 | btv->audio_mode_gpio(btv, ©, 1); | ||
1837 | } | ||
1835 | return 0; | 1838 | return 0; |
1836 | } | 1839 | } |
1837 | 1840 | ||
@@ -3279,7 +3282,7 @@ static int radio_g_tuner(struct file *file, void *priv, struct v4l2_tuner *t) | |||
3279 | } | 3282 | } |
3280 | 3283 | ||
3281 | static int radio_s_tuner(struct file *file, void *priv, | 3284 | static int radio_s_tuner(struct file *file, void *priv, |
3282 | struct v4l2_tuner *t) | 3285 | const struct v4l2_tuner *t) |
3283 | { | 3286 | { |
3284 | struct bttv_fh *fh = priv; | 3287 | struct bttv_fh *fh = priv; |
3285 | struct bttv *btv = fh->btv; | 3288 | struct bttv *btv = fh->btv; |