summaryrefslogtreecommitdiff
path: root/drivers/media/dvb/frontends/zl10353.c
diff options
context:
space:
mode:
authorChris Pascoe <c.pascoe@itee.uq.edu.au>2007-02-10 10:19:16 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-02-21 13:35:25 -0200
commit6345f0f6428cc7a3f73b83624c6f97629a9fddd1 (patch)
treed85a30392e5f56b8dad80e572c8925c41a0c5111 /drivers/media/dvb/frontends/zl10353.c
parentf7f57770dc610eddd678aec483263e7980327ee9 (diff)
V4L/DVB (5218): Zl10353: register definitions update
Update the descriptions of "discovered" registers on the zl10353, using the equivalaent mt352 register names. Signed-off-by: Chris Pascoe <c.pascoe@itee.uq.edu.au> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/frontends/zl10353.c')
-rw-r--r--drivers/media/dvb/frontends/zl10353.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/media/dvb/frontends/zl10353.c b/drivers/media/dvb/frontends/zl10353.c
index dbb53ba6f414..245f9b7dddfa 100644
--- a/drivers/media/dvb/frontends/zl10353.c
+++ b/drivers/media/dvb/frontends/zl10353.c
@@ -258,9 +258,9 @@ static int zl10353_read_ber(struct dvb_frontend *fe, u32 *ber)
{
struct zl10353_state *state = fe->demodulator_priv;
- *ber = zl10353_read_register(state, 0x11) << 16 |
- zl10353_read_register(state, 0x12) << 8 |
- zl10353_read_register(state, 0x13);
+ *ber = zl10353_read_register(state, RS_ERR_CNT_2) << 16 |
+ zl10353_read_register(state, RS_ERR_CNT_1) << 8 |
+ zl10353_read_register(state, RS_ERR_CNT_0);
return 0;
}
@@ -269,8 +269,8 @@ static int zl10353_read_signal_strength(struct dvb_frontend *fe, u16 *strength)
{
struct zl10353_state *state = fe->demodulator_priv;
- u16 signal = zl10353_read_register(state, 0x0a) << 10 |
- zl10353_read_register(state, 0x0b) << 2 | 3;
+ u16 signal = zl10353_read_register(state, AGC_GAIN_1) << 10 |
+ zl10353_read_register(state, AGC_GAIN_0) << 2 | 3;
*strength = ~signal;
@@ -295,8 +295,8 @@ static int zl10353_read_ucblocks(struct dvb_frontend *fe, u32 *ucblocks)
{
struct zl10353_state *state = fe->demodulator_priv;
- *ucblocks = zl10353_read_register(state, 0x14) << 8 |
- zl10353_read_register(state, 0x15);
+ *ucblocks = zl10353_read_register(state, RS_UBC_1) << 8 |
+ zl10353_read_register(state, RS_UBC_0);
return 0;
}