]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - sound/i2c/other/tea575x-tuner.c
[media] v4l2: add const to argument of write-only s_frequency ioctl
[karo-tx-linux.git] / sound / i2c / other / tea575x-tuner.c
index 3c6c1e3226f365c82c45cc1f98065520d24bfbb7..738c5ad9c93f4019b58e58994f9229e14b498d3a 100644 (file)
@@ -336,7 +336,7 @@ static int vidioc_g_frequency(struct file *file, void *priv,
 }
 
 static int vidioc_s_frequency(struct file *file, void *priv,
-                                       struct v4l2_frequency *f)
+                                       const struct v4l2_frequency *f)
 {
        struct snd_tea575x *tea = video_drvdata(file);
 
@@ -350,7 +350,7 @@ static int vidioc_s_frequency(struct file *file, void *priv,
        else
                tea->band = BAND_FM;
 
-       tea->freq = clamp(f->frequency, bands[tea->band].rangelow,
+       tea->freq = clamp_t(u32, f->frequency, bands[tea->band].rangelow,
                                        bands[tea->band].rangehigh);
        snd_tea575x_set_freq(tea);
        return 0;