summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2008-11-04 16:32:59 +0200
committerAntti Palosaari <crope@iki.fi>2008-11-04 16:32:59 +0200
commitcff91fce09fe7bd354a4dfcd05f05622a07ee3f8 (patch)
tree9fcb1cb4141a13b8de6b16dd8ac4bcedffd8a0cf
parent3abc5a28999dce72afa17a7a057122a088affef7 (diff)
downloadmediapointer-dvb-s2-cff91fce09fe7bd354a4dfcd05f05622a07ee3f8.tar.gz
mediapointer-dvb-s2-cff91fce09fe7bd354a4dfcd05f05622a07ee3f8.tar.bz2
af9013: fix bug in status reading
From: roel kluin <roel.kluin@gmail.com> - ! has a higher precedence than & Priority: normal Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: Antti Palosaari <crope@iki.fi>
-rw-r--r--linux/drivers/media/dvb/frontends/af9013.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/linux/drivers/media/dvb/frontends/af9013.c b/linux/drivers/media/dvb/frontends/af9013.c
index 21c1060cf..692b68a9e 100644
--- a/linux/drivers/media/dvb/frontends/af9013.c
+++ b/linux/drivers/media/dvb/frontends/af9013.c
@@ -1187,7 +1187,7 @@ static int af9013_read_status(struct dvb_frontend *fe, fe_status_t *status)
if (tmp)
*status |= FE_HAS_SYNC | FE_HAS_LOCK;
- if (!*status & FE_HAS_SIGNAL) {
+ if (!(*status & FE_HAS_SIGNAL)) {
/* AGC lock */
ret = af9013_read_reg_bits(state, 0xd1a0, 6, 1, &tmp);
if (ret)
@@ -1196,7 +1196,7 @@ static int af9013_read_status(struct dvb_frontend *fe, fe_status_t *status)
*status |= FE_HAS_SIGNAL;
}
- if (!*status & FE_HAS_CARRIER) {
+ if (!(*status & FE_HAS_CARRIER)) {
/* CFO lock */
ret = af9013_read_reg_bits(state, 0xd333, 7, 1, &tmp);
if (ret)
@@ -1205,7 +1205,7 @@ static int af9013_read_status(struct dvb_frontend *fe, fe_status_t *status)
*status |= FE_HAS_CARRIER;
}
- if (!*status & FE_HAS_CARRIER) {
+ if (!(*status & FE_HAS_CARRIER)) {
/* SFOE lock */
ret = af9013_read_reg_bits(state, 0xd334, 6, 1, &tmp);
if (ret)