mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
Input: edt-ft5x06 - fix an i2c write for M09 support
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 <robert@linuxdevelopment.de> Acked-By: Simon Budig <simon.budig@kernelconcepts.de> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
parent
61721c88b8
commit
cc071acaa2
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue