Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 208125
b: refs/heads/master
c: 18a87be
h: refs/heads/master
i:
  208123: 216fa96
v: v3
  • Loading branch information
Jean Delvare authored and Mauro Carvalho Chehab committed Aug 9, 2010
1 parent 6871d07 commit 64472d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 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: 44835f197bf1e3f57464f23dfb239fef06cf89be
refs/heads/master: 18a87becf85d50e7f3d547f1b7a75108b151374d
15 changes: 3 additions & 12 deletions trunk/drivers/media/video/cx23885/cx23885-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,7 @@ static int i2c_sendbytes(struct i2c_adapter *i2c_adap,
cx_write(bus->reg_wdata, wdata);
cx_write(bus->reg_ctrl, ctrl);

retval = i2c_wait_done(i2c_adap);
if (retval < 0)
goto err;
if (retval == 0)
if (!i2c_wait_done(i2c_adap))
goto eio;
if (!i2c_slave_did_ack(i2c_adap)) {
retval = -ENXIO;
Expand All @@ -149,10 +146,7 @@ static int i2c_sendbytes(struct i2c_adapter *i2c_adap,
cx_write(bus->reg_wdata, wdata);
cx_write(bus->reg_ctrl, ctrl);

retval = i2c_wait_done(i2c_adap);
if (retval < 0)
goto err;
if (retval == 0)
if (!i2c_wait_done(i2c_adap))
goto eio;
if (i2c_debug) {
dprintk(1, " %02x", msg->buf[cnt]);
Expand Down Expand Up @@ -213,10 +207,7 @@ static int i2c_readbytes(struct i2c_adapter *i2c_adap,
cx_write(bus->reg_addr, msg->addr << 25);
cx_write(bus->reg_ctrl, ctrl);

retval = i2c_wait_done(i2c_adap);
if (retval < 0)
goto err;
if (retval == 0)
if (!i2c_wait_done(i2c_adap))
goto eio;
if (cnt == 0 && !i2c_slave_did_ack(i2c_adap)) {
retval = -ENXIO;
Expand Down

0 comments on commit 64472d8

Please sign in to comment.