Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 331154
b: refs/heads/master
c: 2a9d247
h: refs/heads/master
v: v3
  • Loading branch information
Shubhrajyoti D authored and Mauro Carvalho Chehab committed Sep 27, 2012
1 parent 274cd89 commit 1179e70
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: 896f38f582730a19eb49677105b4fe4c0270b82e
refs/heads/master: 2a9d247262eb09904b821dd45b599109ac8dad0b
13 changes: 11 additions & 2 deletions trunk/drivers/media/i2c/ks0127.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,17 @@ static u8 ks0127_read(struct v4l2_subdev *sd, u8 reg)
struct i2c_client *client = v4l2_get_subdevdata(sd);
char val = 0;
struct i2c_msg msgs[] = {
{ client->addr, 0, sizeof(reg), &reg },
{ client->addr, I2C_M_RD | I2C_M_NO_RD_ACK, sizeof(val), &val }
{
.addr = client->addr,
.len = sizeof(reg),
.buf = &reg
},
{
.addr = client->addr,
.flags = I2C_M_RD | I2C_M_NO_RD_ACK,
.len = sizeof(val),
.buf = &val
}
};
int ret;

Expand Down

0 comments on commit 1179e70

Please sign in to comment.