Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 260782
b: refs/heads/master
c: 21184c4
h: refs/heads/master
v: v3
  • Loading branch information
Axel Lin authored and Dmitry Torokhov committed Jul 13, 2011
1 parent e7abb37 commit 98a2512
Show file tree
Hide file tree
Showing 2 changed files with 3 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: fea2021c76a414b71204cc2aea623bb037fa913b
refs/heads/master: 21184c4efbba7b7959c7868cf2b99f43f29fc199
4 changes: 2 additions & 2 deletions trunk/drivers/input/touchscreen/cy8ctmg110_ts.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ static int cy8ctmg110_write_regs(struct cy8ctmg110 *tsc, unsigned char reg,
memcpy(i2c_data + 1, value, len);

ret = i2c_master_send(client, i2c_data, len + 1);
if (ret != 1) {
if (ret != len + 1) {
dev_err(&client->dev, "i2c write data cmd failed\n");
return ret ? ret : -EIO;
return ret < 0 ? ret : -EIO;
}

return 0;
Expand Down

0 comments on commit 98a2512

Please sign in to comment.