|
@@ -0,0 +1,20 @@
|
|
|
+diff -Naurp a/drivers/input/touchscreen/edt-ft5x06.c b/drivers/input/touchscreen/edt-ft5x06.c
|
|
|
+--- a/drivers/input/touchscreen/edt-ft5x06.c 2018-02-20 20:55:48.828441552 +0100
|
|
|
++++ b/drivers/input/touchscreen/edt-ft5x06.c 2018-02-20 20:55:02.332357749 +0100
|
|
|
+@@ -292,7 +292,6 @@ static int edt_ft5x06_register_write(str
|
|
|
+ case M06:
|
|
|
+ wrbuf[0] = tsdata->factory_mode ? 0xf3 : 0xfc;
|
|
|
+ wrbuf[1] = tsdata->factory_mode ? addr & 0x7f : addr & 0x3f;
|
|
|
+- wrbuf[1] = tsdata->factory_mode ? addr & 0x7f : addr & 0x3f;
|
|
|
+ wrbuf[2] = value;
|
|
|
+ wrbuf[3] = wrbuf[0] ^ wrbuf[1] ^ wrbuf[2];
|
|
|
+ return edt_ft5x06_ts_readwrite(tsdata->client, 4, wrbuf, 0, NULL);
|
|
|
+@@ -302,7 +301,7 @@ static int edt_ft5x06_register_write(str
|
|
|
+ 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:
|