Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 233776
b: refs/heads/master
c: 4b57018
h: refs/heads/master
v: v3
  • Loading branch information
vwadekar@nvidia.com authored and Samuel Ortiz committed Mar 2, 2011
1 parent 9d92a84 commit 10127cc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: 77bd70e9009eab6dbdef3ee08afe87ab26df8dac
refs/heads/master: 4b57018dcd6418e18c08088c89f123da8a7bfc45
10 changes: 5 additions & 5 deletions trunk/drivers/mfd/tps6586x.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,12 @@ static inline int __tps6586x_write(struct i2c_client *client,
static inline int __tps6586x_writes(struct i2c_client *client, int reg,
int len, uint8_t *val)
{
int ret;
int ret, i;

ret = i2c_smbus_write_i2c_block_data(client, reg, len, val);
if (ret < 0) {
dev_err(&client->dev, "failed writings to 0x%02x\n", reg);
return ret;
for (i = 0; i < len; i++) {
ret = __tps6586x_write(client, reg + i, *(val + i));
if (ret < 0)
return ret;
}

return 0;
Expand Down

0 comments on commit 10127cc

Please sign in to comment.