diff options
author | Robert Woerle <robert@linuxdevelopment.de> | 2014-06-08 01:20:23 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2014-06-08 02:20:22 -0400 |
commit | cc071acaa2cf7b7b8c716ad48f3ba93a2e064687 (patch) | |
tree | ef8de834165be297f843ab3f3eb42e72c0884cde /drivers/input/touchscreen/edt-ft5x06.c | |
parent | 61721c88b8d85c9dc13bfeedf75dfc245f397c3c (diff) |
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>
Diffstat (limited to 'drivers/input/touchscreen/edt-ft5x06.c')
-rw-r--r-- | drivers/input/touchscreen/edt-ft5x06.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/edt-ft5x06.c b/drivers/input/touchscreen/edt-ft5x06.c index f8815bebc9ef..d4f33992ad8c 100644 --- a/drivers/input/touchscreen/edt-ft5x06.c +++ b/drivers/input/touchscreen/edt-ft5x06.c | |||
@@ -271,7 +271,7 @@ static int edt_ft5x06_register_write(struct edt_ft5x06_ts_data *tsdata, | |||
271 | wrbuf[0] = addr; | 271 | wrbuf[0] = addr; |
272 | wrbuf[1] = value; | 272 | wrbuf[1] = value; |
273 | 273 | ||
274 | return edt_ft5x06_ts_readwrite(tsdata->client, 3, | 274 | return edt_ft5x06_ts_readwrite(tsdata->client, 2, |
275 | wrbuf, 0, NULL); | 275 | wrbuf, 0, NULL); |
276 | 276 | ||
277 | default: | 277 | default: |