aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/radio/tef6862.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2013-11-04 06:28:57 -0300
committerMauro Carvalho Chehab <m.chehab@samsung.com>2013-11-29 14:22:35 -0200
commit9ba6a91f19b8c118d11c549495fa4f7a20505d80 (patch)
treea2304ac3a0b7de5c3448af6d1e0902a6b09a331b /drivers/media/radio/tef6862.c
parent[media] cx231xx: use after free on error path in probe (diff)
downloadlinux-dev-9ba6a91f19b8c118d11c549495fa4f7a20505d80.tar.xz
linux-dev-9ba6a91f19b8c118d11c549495fa4f7a20505d80.zip
[media] tef6862/radio-tea5764: actually assign clamp result
When adding frequency clamping to the tef6862 and radio-tea5764 drivers I forgot to actually *assign* the clamp result to the frequency. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Reported-by: Hans Petter Selasky <hps@bitfrost.no> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com> Cc: stable@vger.kernel.org # for 3.11 and up
Diffstat (limited to 'drivers/media/radio/tef6862.c')
-rw-r--r--drivers/media/radio/tef6862.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/radio/tef6862.c b/drivers/media/radio/tef6862.c
index 69e3245a58a0..a9319a24c7ef 100644
--- a/drivers/media/radio/tef6862.c
+++ b/drivers/media/radio/tef6862.c
@@ -112,7 +112,7 @@ static int tef6862_s_frequency(struct v4l2_subdev *sd, const struct v4l2_frequen
if (f->tuner != 0)
return -EINVAL;
- clamp(freq, TEF6862_LO_FREQ, TEF6862_HI_FREQ);
+ freq = clamp(freq, TEF6862_LO_FREQ, TEF6862_HI_FREQ);
pll = 1964 + ((freq - TEF6862_LO_FREQ) * 20) / FREQ_MUL;
i2cmsg[0] = (MSA_MODE_PRESET << MSA_MODE_SHIFT) | WM_SUB_PLLM;
i2cmsg[1] = (pll >> 8) & 0xff;