projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78639a3
)
[PATCH] dvb: frontend: tda1004x: fix SNR reading
author
Andrew de Quincey
<adq_dvb@lidskialf.net>
Fri, 9 Sep 2005 20:02:33 +0000
(13:02 -0700)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Fri, 9 Sep 2005 20:57:38 +0000
(13:57 -0700)
Fix SNR reading
Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
Signed-off-by: Johannes Stezenbach <js@linuxtv.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/media/dvb/frontends/tda1004x.c
patch
|
blob
|
history
diff --git
a/drivers/media/dvb/frontends/tda1004x.c
b/drivers/media/dvb/frontends/tda1004x.c
index ab0c032472cc01bdb6f02eefdb05966df1ba014d..74cea9f8d72106d2561aa9c4695f99853cdf9bb3 100644
(file)
--- a/
drivers/media/dvb/frontends/tda1004x.c
+++ b/
drivers/media/dvb/frontends/tda1004x.c
@@
-1046,8
+1046,7
@@
static int tda1004x_read_snr(struct dvb_frontend* fe, u16 * snr)
tmp = tda1004x_read_byte(state, TDA1004X_SNR);
if (tmp < 0)
return -EIO;
- if (tmp)
- tmp = 255 - tmp;
+ tmp = 255 - tmp;
*snr = ((tmp << 8) | tmp);
dprintk("%s: snr=0x%x\n", __FUNCTION__, *snr);