From: Robert Woerle Date: Sun, 8 Jun 2014 05:20:23 +0000 (-0700) Subject: Input: edt-ft5x06 - fix an i2c write for M09 support X-Git-Tag: next-20140610~84^2^2~4 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=cc071acaa2cf7b7b8c716ad48f3ba93a2e064687;p=karo-tx-linux.git 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 Acked-By: Simon Budig Signed-off-by: Dmitry Torokhov --- 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, 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: