Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 285266
b: refs/heads/master
c: 654d075
h: refs/heads/master
v: v3
  • Loading branch information
Leonid V. Fedorenchik authored and Mauro Carvalho Chehab committed Nov 24, 2011
1 parent d760a66 commit 9d1df6a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 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: 3f0bfe5bbd63279fbb278659e9709b90040bfb20
refs/heads/master: 654d075d5db3220af1385980acba8f9417c0f36a
10 changes: 4 additions & 6 deletions trunk/drivers/media/video/cx25821/cx25821-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,8 @@ static int i2c_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg *msgs, int num)
} else if (i + 1 < num && (msgs[i + 1].flags & I2C_M_RD) &&
msgs[i].addr == msgs[i + 1].addr) {
/* write then read from same address */
retval =
i2c_sendbytes(i2c_adap, &msgs[i], msgs[i + 1].len);
retval = i2c_sendbytes(i2c_adap, &msgs[i],
msgs[i + 1].len);

if (retval < 0)
goto err;
Expand All @@ -276,10 +276,8 @@ static int i2c_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg *msgs, int num)

static u32 cx25821_functionality(struct i2c_adapter *adap)
{
return I2C_FUNC_SMBUS_EMUL |
I2C_FUNC_I2C |
I2C_FUNC_SMBUS_WORD_DATA |
I2C_FUNC_SMBUS_READ_WORD_DATA | I2C_FUNC_SMBUS_WRITE_WORD_DATA;
return I2C_FUNC_SMBUS_EMUL | I2C_FUNC_I2C | I2C_FUNC_SMBUS_WORD_DATA |
I2C_FUNC_SMBUS_READ_WORD_DATA | I2C_FUNC_SMBUS_WRITE_WORD_DATA;
}

static struct i2c_algorithm cx25821_i2c_algo_template = {
Expand Down

0 comments on commit 9d1df6a

Please sign in to comment.