diff options
author | Andrew de Quincey <adq_dvb@lidskialf.net> | 2006-08-03 10:02:15 +0100 |
---|---|---|
committer | Andrew de Quincey <adq_dvb@lidskialf.net> | 2006-08-03 10:02:15 +0100 |
commit | 7b4f0177b23a90aef92464a53e99771e4c3d1bbc (patch) | |
tree | 5f31e73aa8efdea4f0be72fcb9a63290d720c4f8 /linux/drivers/media/dvb/frontends/tda826x.c | |
parent | 5d240a7d7f05be93610bae704a8bb4415907d247 (diff) | |
download | mediapointer-dvb-s2-7b4f0177b23a90aef92464a53e99771e4c3d1bbc.tar.gz mediapointer-dvb-s2-7b4f0177b23a90aef92464a53e99771e4c3d1bbc.tar.bz2 |
Fix tda826x detection
From: Andrew de Quincey <adq_dvb@lidskialf.net>
The tda826x detection was (correctly) cleaned up earlier, but unfortunately
changing the number of received i2c messages from 2 -> 1 was missed. This
fixes it.
Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
Diffstat (limited to 'linux/drivers/media/dvb/frontends/tda826x.c')
-rw-r--r-- | linux/drivers/media/dvb/frontends/tda826x.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/linux/drivers/media/dvb/frontends/tda826x.c b/linux/drivers/media/dvb/frontends/tda826x.c index 7c19b88e9..eeab26bd3 100644 --- a/linux/drivers/media/dvb/frontends/tda826x.c +++ b/linux/drivers/media/dvb/frontends/tda826x.c @@ -133,18 +133,18 @@ struct dvb_frontend *tda826x_attach(struct dvb_frontend *fe, int addr, struct i2 { struct tda826x_priv *priv = NULL; u8 b1 [] = { 0, 0 }; - struct i2c_msg msg [] = { { .addr = addr, .flags = I2C_M_RD, .buf = b1, .len = 2 } }; + struct i2c_msg msg = { .addr = addr, .flags = I2C_M_RD, .buf = b1, .len = 2 }; int ret; dprintk("%s:\n", __FUNCTION__); if (fe->ops.i2c_gate_ctrl) fe->ops.i2c_gate_ctrl(fe, 1); - ret = i2c_transfer (i2c, msg, 1); + ret = i2c_transfer (i2c, &msg, 1); if (fe->ops.i2c_gate_ctrl) fe->ops.i2c_gate_ctrl(fe, 0); - if (ret != 2) + if (ret != 1) return NULL; if (!(b1[1] & 0x80)) return NULL; |