Skip to content

Commit

Permalink
Input: edt-ft5x06 - fix an i2c write for M09 support
Browse files Browse the repository at this point in the history
The driver sends 3 bytes instead of 2 when accessing a register on the M09
firmware, so writing to gain seems to overflow into the offset register.

Signed-off-by: Robert Woerle <[email protected]>
Acked-By: Simon Budig <[email protected]>
Signed-off-by: Dmitry Torokhov <[email protected]>
  • Loading branch information
rob-w authored and dtor committed Jun 8, 2014
1 parent 61721c8 commit cc071ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/touchscreen/edt-ft5x06.c
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ static int edt_ft5x06_register_write(struct edt_ft5x06_ts_data *tsdata,
wrbuf[0] = addr;
wrbuf[1] = value;

return edt_ft5x06_ts_readwrite(tsdata->client, 3,
return edt_ft5x06_ts_readwrite(tsdata->client, 2,
wrbuf, 0, NULL);

default:
Expand Down

0 comments on commit cc071ac

Please sign in to comment.