summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2006-11-21 11:26:53 -0200
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-11-21 11:26:53 -0200
commitb01482bc30699d83320f0d85176254f203cf9b63 (patch)
tree2066b733e9a1dd02155b58bf6d167d23fcaa2cc0 /linux/drivers/media/dvb/frontends
parent84fad7e5d89c6d848c581cfe0367f9027400bc0d (diff)
parent665a2be1ea17ed99d3373f80031063fae340cfcd (diff)
downloadmediapointer-dvb-s2-b01482bc30699d83320f0d85176254f203cf9b63.tar.gz
mediapointer-dvb-s2-b01482bc30699d83320f0d85176254f203cf9b63.tar.bz2
merge: http://linuxtv.org/hg/~mkrufky/dvb-pll
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/dvb/frontends')
-rw-r--r--linux/drivers/media/dvb/frontends/tda826x.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/linux/drivers/media/dvb/frontends/tda826x.c b/linux/drivers/media/dvb/frontends/tda826x.c
index 4f01d7b47..79f971dc5 100644
--- a/linux/drivers/media/dvb/frontends/tda826x.c
+++ b/linux/drivers/media/dvb/frontends/tda826x.c
@@ -132,18 +132,21 @@ 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[2] = {
+ { .addr = addr, .flags = 0, .buf = NULL, .len = 0 },
+ { .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, 2);
if (fe->ops.i2c_gate_ctrl)
fe->ops.i2c_gate_ctrl(fe, 0);
- if (ret != 1)
+ if (ret != 2)
return NULL;
if (!(b1[1] & 0x80))
return NULL;