The side effect of ESD has fixed. Signed-off-by: Mike Hsu <[email protected]> Signed-off-by: Scott Liu <[email protected]>
---
ektf2136_spi.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
--- linux-2.6.37/drivers/input/touchscreen/ektf2136_spi.old.c 2011-07-14
22:30:10.560603900 -0700
+++ linux-2.6.37/drivers/input/touchscreen/ektf2136_spi.c 2011-07-24
20:42:11.346977016 -0700
@@ -30,11 +30,11 @@
#include <linux/pm_runtime.h>
#define DRV_NAME "ektf2136_spi"
-#define DRIVER_VERSION "v3.0.7"
+#define DRIVER_VERSION "v3.0.8"
#define DRV_MA_VER 3
#define DRV_MI_VER 0
-#define DRV_SUB_MI_VER 7
+#define DRV_SUB_MI_VER 8
static const char ELAN_TS_NAME[] = "ektf2136_spi";
@@ -1049,7 +1049,7 @@
static const u8 wait_sync_cmd[4] = { 0xAA, 0xAA, 0xAA, 0xAA };
int cmd_sync_timeout = 0, rc = 0, v = 0;
struct elan_data *ed = spi_get_drvdata(spi);
- u8 temp[IDX_MAX_PACKET_SIZE];
+ u8 temp[IDX_MAX_PACKET_SIZE] = {0xAA};
if (!(ed->protocol & PRO_SPI_WRT_CMD_SYNC))
return rc;
@@ -1065,7 +1065,7 @@
/* INT pin already is low. Not waiting for command.*/
if (v == 0) {
- elan_spi_read_data(spi, temp, sizeof(temp),
+ elan_spi_write_data(spi, temp, sizeof(temp),
"clear report");
while (v == 0) {
v = gpio_get_value(ed->intr_gpio);
linux-2.6.37-ektf-fix-ESD_side_effect.patch
Description: Binary data
_______________________________________________ MeeGo-kernel mailing list [email protected] http://lists.meego.com/listinfo/meego-kernel
