Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 37365
b: refs/heads/master
c: e4a49d7
h: refs/heads/master
i:
  37363: 269b8a0
v: v3
  • Loading branch information
Andrew de Quincey authored and Mauro Carvalho Chehab committed Sep 26, 2006
1 parent e6e1b60 commit 517f981
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 17aafcc67feb359820488ffb0017405ad48b776e
refs/heads/master: e4a49d76ca4e2c0b2b4c89d59d43486d781ffe95
6 changes: 3 additions & 3 deletions trunk/drivers/media/dvb/frontends/tda826x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 517f981

Please sign in to comment.