Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 208099
b: refs/heads/master
c: f1b5076
h: refs/heads/master
i:
  208097: 5a6ee87
  208095: 9e6aaea
v: v3
  • Loading branch information
Dan Carpenter authored and Dmitry Torokhov committed Aug 10, 2010
1 parent ace10d2 commit 09dc6bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 22462d9fcf5b29184716aca486058943b2d6995f
refs/heads/master: f1b50760a7e3d69ef5d62f294e51300dd206ea05
6 changes: 3 additions & 3 deletions trunk/drivers/input/touchscreen/cy8ctmg110_ts.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ static int cy8ctmg110_write_regs(struct cy8ctmg110 *tsc, unsigned char reg,
unsigned char len, unsigned char *value)
{
struct i2c_client *client = tsc->client;
unsigned int ret;
int ret;
unsigned char i2c_data[6];

BUG_ON(len > 5);
Expand All @@ -86,7 +86,7 @@ static int cy8ctmg110_write_regs(struct cy8ctmg110 *tsc, unsigned char reg,
ret = i2c_master_send(client, i2c_data, len + 1);
if (ret != 1) {
dev_err(&client->dev, "i2c write data cmd failed\n");
return ret;
return ret ? ret : -EIO;
}

return 0;
Expand All @@ -96,7 +96,7 @@ static int cy8ctmg110_read_regs(struct cy8ctmg110 *tsc,
unsigned char *data, unsigned char len, unsigned char cmd)
{
struct i2c_client *client = tsc->client;
unsigned int ret;
int ret;
struct i2c_msg msg[2] = {
/* first write slave position to i2c devices */
{ client->addr, 0, 1, &cmd },
Expand Down

0 comments on commit 09dc6bc

Please sign in to comment.