aboutsummaryrefslogtreecommitdiffstats
path: root/sound
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 /sound
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 'sound')
-rw-r--r--sound/i2c/other/tea575x-tuner.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/i2c/other/tea575x-tuner.c b/sound/i2c/other/tea575x-tuner.c
index 3c6c1e3226f3..738c5ad9c93f 100644
--- a/sound/i2c/other/tea575x-tuner.c
+++ b/sound/i2c/other/tea575x-tuner.c
@@ -336,7 +336,7 @@ static int vidioc_g_frequency(struct file *file, void *priv,
336} 336}
337 337
338static int vidioc_s_frequency(struct file *file, void *priv, 338static int vidioc_s_frequency(struct file *file, void *priv,
339 struct v4l2_frequency *f) 339 const struct v4l2_frequency *f)
340{ 340{
341 struct snd_tea575x *tea = video_drvdata(file); 341 struct snd_tea575x *tea = video_drvdata(file);
342 342
@@ -350,7 +350,7 @@ static int vidioc_s_frequency(struct file *file, void *priv,
350 else 350 else
351 tea->band = BAND_FM; 351 tea->band = BAND_FM;
352 352
353 tea->freq = clamp(f->frequency, bands[tea->band].rangelow, 353 tea->freq = clamp_t(u32, f->frequency, bands[tea->band].rangelow,
354 bands[tea->band].rangehigh); 354 bands[tea->band].rangehigh);
355 snd_tea575x_set_freq(tea); 355 snd_tea575x_set_freq(tea);
356 return 0; 356 return 0;