diff options
Diffstat (limited to 'sound/i2c')
-rw-r--r-- | sound/i2c/other/tea575x-tuner.c | 4 |
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 | ||
338 | static int vidioc_s_frequency(struct file *file, void *priv, | 338 | static 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; |