Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 331158
b: refs/heads/master
c: c43737a
h: refs/heads/master
v: v3
  • Loading branch information
Shubhrajyoti D authored and Mauro Carvalho Chehab committed Sep 27, 2012
1 parent e581a03 commit 598e96a
Show file tree
Hide file tree
Showing 2 changed files with 14 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: 1215af48366ff1e2401a0afcedfd3dcdff5f13fd
refs/heads/master: c43737aac95bdd005a0ee459b006c7e0f8a5519d
15 changes: 13 additions & 2 deletions trunk/drivers/media/radio/saa7706h.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,19 @@ static int saa7706h_get_reg16(struct v4l2_subdev *sd, u16 reg)
u8 buf[2];
int err;
u8 regaddr[] = {reg >> 8, reg};
struct i2c_msg msg[] = { {client->addr, 0, sizeof(regaddr), regaddr},
{client->addr, I2C_M_RD, sizeof(buf), buf} };
struct i2c_msg msg[] = {
{
.addr = client->addr,
.len = sizeof(regaddr),
.buf = regaddr
},
{
.addr = client->addr,
.flags = I2C_M_RD,
.len = sizeof(buf),
.buf = buf
}
};

err = saa7706h_i2c_transfer(client, msg, ARRAY_SIZE(msg));
if (err)
Expand Down

0 comments on commit 598e96a

Please sign in to comment.