mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[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 <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
69aa6f4ec6
commit
b530a447bb
56 changed files with 115 additions and 110 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue