Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 329994
b: refs/heads/master
c: 4894222
h: refs/heads/master
v: v3
  • Loading branch information
Shubhrajyoti D authored and Samuel Ortiz committed Sep 21, 2012
1 parent bbb4c7f commit ef2fc36
Show file tree
Hide file tree
Showing 2 changed files with 13 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: 760189b362a5e00ea60477995a1d0a5826a333be
refs/heads/master: 489422224b74c33e0efec940ad17fc02dcfe0e1f
14 changes: 12 additions & 2 deletions trunk/drivers/mfd/88pm860x-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,18 @@ static int read_device(struct i2c_client *i2c, int reg,
unsigned char msgbuf0[I2C_SMBUS_BLOCK_MAX + 3];
unsigned char msgbuf1[I2C_SMBUS_BLOCK_MAX + 2];
struct i2c_adapter *adap = i2c->adapter;
struct i2c_msg msg[2] = {{i2c->addr, 0, 1, msgbuf0},
{i2c->addr, I2C_M_RD, 0, msgbuf1},
struct i2c_msg msg[2] = {
{
.addr = i2c->addr,
.flags = 0,
.len = 1,
.buf = msgbuf0
},
{ .addr = i2c->addr,
.flags = I2C_M_RD,
.len = 0,
.buf = msgbuf1
},
};
int num = 1, ret = 0;

Expand Down

0 comments on commit ef2fc36

Please sign in to comment.