Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 271930
b: refs/heads/master
c: 4c4364e
h: refs/heads/master
v: v3
  • Loading branch information
Dan Carpenter authored and Mauro Carvalho Chehab committed Sep 30, 2011
1 parent e159641 commit b54ce6e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 446b792c6bd87de4565ba200b75a708b4c575a06
refs/heads/master: 4c4364e022f8422e602edbb97a2d873dc0b6c769
4 changes: 2 additions & 2 deletions trunk/drivers/media/dvb/dvb-usb/mxl111sf-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ static int mxl111sf_i2c_hw_xfer_msg(struct mxl111sf_state *state,

mxl_i2c("addr: 0x%02x, read buff len: %d, write buff len: %d",
msg->addr, (msg->flags & I2C_M_RD) ? msg->len : 0,
(!msg->flags & I2C_M_RD) ? msg->len : 0);
(!(msg->flags & I2C_M_RD)) ? msg->len : 0);

for (index = 0; index < 26; index++)
buf[index] = USB_END_I2C_CMD;
Expand Down Expand Up @@ -489,7 +489,7 @@ static int mxl111sf_i2c_hw_xfer_msg(struct mxl111sf_state *state,
ret = mxl111sf_i2c_send_data(state, 0, buf);

/* write data on I2C bus */
if ((!msg->flags & I2C_M_RD) && (msg->len > 0)) {
if (!(msg->flags & I2C_M_RD) && (msg->len > 0)) {
mxl_i2c("%d\t%02x", msg->len, msg->buf[0]);

/* control register on I2C interface to initialize I2C bus */
Expand Down

0 comments on commit b54ce6e

Please sign in to comment.