Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 343930
b: refs/heads/master
c: 09f2967
h: refs/heads/master
v: v3
  • Loading branch information
Shubhrajyoti D authored and Mauro Carvalho Chehab committed Nov 21, 2012
1 parent 1a7bfb7 commit f30cf8c
Show file tree
Hide file tree
Showing 2 changed files with 14 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: 37b0b4e90d799cddfdd5d0a90ed470933f7e9859
refs/heads/master: 09f29673857a499dcf9a3baa896faf791d06812f
16 changes: 13 additions & 3 deletions trunk/drivers/media/i2c/adv7604.c
Original file line number Diff line number Diff line change
Expand Up @@ -403,9 +403,19 @@ static inline int edid_read_block(struct v4l2_subdev *sd, unsigned len, u8 *val)
struct i2c_client *client = state->i2c_edid;
u8 msgbuf0[1] = { 0 };
u8 msgbuf1[256];
struct i2c_msg msg[2] = { { client->addr, 0, 1, msgbuf0 },
{ client->addr, 0 | I2C_M_RD, len, msgbuf1 }
};
struct i2c_msg msg[2] = {
{
.addr = client->addr,
.len = 1,
.buf = msgbuf0
},
{
.addr = client->addr,
.flags = I2C_M_RD,
.len = len,
.buf = msgbuf1
},
};

if (i2c_transfer(client->adapter, msg, 2) < 0)
return -EIO;
Expand Down

0 comments on commit f30cf8c

Please sign in to comment.