Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 331155
b: refs/heads/master
c: 752d283
h: refs/heads/master
i:
  331153: 274cd89
  331151: 9337d37
v: v3
  • Loading branch information
Shubhrajyoti D authored and Mauro Carvalho Chehab committed Sep 27, 2012
1 parent 1179e70 commit 6e88876
Show file tree
Hide file tree
Showing 2 changed files with 12 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: 2a9d247262eb09904b821dd45b599109ac8dad0b
refs/heads/master: 752d283a70a246140c67daf355f04136e2bf340f
13 changes: 11 additions & 2 deletions trunk/drivers/media/i2c/tvaudio.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,17 @@ static int chip_read2(struct CHIPSTATE *chip, int subaddr)
unsigned char write[1];
unsigned char read[1];
struct i2c_msg msgs[2] = {
{ c->addr, 0, 1, write },
{ c->addr, I2C_M_RD, 1, read }
{
.addr = c->addr,
.len = 1,
.buf = write
},
{
.addr = c->addr,
.flags = I2C_M_RD,
.len = 1,
.buf = read
}
};

write[0] = subaddr;
Expand Down

0 comments on commit 6e88876

Please sign in to comment.