summaryrefslogtreecommitdiffstats
path: root/drivers/media/tuners
diff options
context:
space:
mode:
authorBenjamin Larsson <benjamin@southpole.se>2015-03-15 19:57:47 -0300
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-04-02 21:50:57 -0300
commitb91bfcda45a984288f5977b3574aca56eee6f2e4 (patch)
treed3fee7c02fb6d4d0c04c6d995a1e9d5cbad4e5c6 /drivers/media/tuners
parent7b7ef4b4a5997229a42c02435e1775623e4ab379 (diff)
downloadlinux-b91bfcda45a984288f5977b3574aca56eee6f2e4.tar.gz
linux-b91bfcda45a984288f5977b3574aca56eee6f2e4.tar.bz2
linux-b91bfcda45a984288f5977b3574aca56eee6f2e4.zip
[media] r820t: change read_gain() code to match register layout
Signed-off-by: Benjamin Larsson <benjamin@southpole.se> Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/tuners')
-rw-r--r--drivers/media/tuners/r820t.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/tuners/r820t.c b/drivers/media/tuners/r820t.c
index 639c22061dbd..eaaf1dc9dfa8 100644
--- a/drivers/media/tuners/r820t.c
+++ b/drivers/media/tuners/r820t.c
@@ -1199,7 +1199,7 @@ static int r820t_read_gain(struct r820t_priv *priv)
if (rc < 0)
return rc;
- return ((data[3] & 0x0f) << 1) + ((data[3] & 0xf0) >> 4);
+ return ((data[3] & 0x08) << 1) + ((data[3] & 0xf0) >> 4);
}
#if 0