TP: fix tp bug cause by this commit:
author郭毅 <gy@rock-chips.com>
Tue, 13 May 2014 01:20:47 +0000 (09:20 +0800)
committer郭毅 <gy@rock-chips.com>
Tue, 13 May 2014 01:20:47 +0000 (09:20 +0800)
commit 4c225bb953611906f37a6117a6c920a9dd9877a2
Author: 郭毅 <gy@rock-chips.com>
Date:   Mon May 12 17:11:01 2014 +0800

    rk3288: tb: Compatible sdk use f402's LCD&TP

drivers/input/touchscreen/vtl_ts/chip.c
drivers/input/touchscreen/vtl_ts/vtl_ts.c
drivers/input/touchscreen/vtl_ts/vtl_ts.h

index ab73260fe435b44bef78da23f4d65431af3eebfd..c21f0678597fa240b288e29834121fab62cf2ed2 100755 (executable)
@@ -26,7 +26,7 @@ static struct chip_cmd (*chip) = NULL;
 
 
 static unsigned char binary_data[] = {
-#ifdef TB1_USE_F402 
+#if(TB1_USE_F402)
 #include "f307&f317&f316_CT363S_01_V10_F7E9_140212.dat"
 #else
 #include "lx--js77_97_CT365_V01_E7DA_130419.dat"
index 6d45cd93b169219d9bb9fdd6f4155dac2c2546ec..6b9305e4223b4e3cfd5a7762d2750ca2e254c958 100755 (executable)
@@ -270,10 +270,11 @@ static void vtl_ts_report_xy_coord(struct ts_info *ts)
                        y = ts->config_info.screen_max_y - y;\r
                #endif\r
 \r
-               #ifdef TB1_USE_F402\r
+               #if(TB1_USE_F402)       \r
                        x = 2*x;\r
                        y = 2*y;\r
-               #endif  \r
+               #endif\r
+\r
                //#if(DEBUG_ENABLE)\r
                //if((ts->debug)||(DEBUG_ENABLE)){\r
                if(ts->debug){\r
index 4714e54c1c4179b285a0ae013a5c17910a4637c9..1959b55145a3f48ab667ebbb0dac3e84c858d9c7 100755 (executable)
@@ -27,7 +27,7 @@
 \r
 #define TS_I2C_SPEED           400000      //for rockchip\r
 \r
-#ifdef TB1_USE_F402\r
+#if(TB1_USE_F402)\r
 #define                XY_SWAP_ENABLE          1\r
 #else\r
 #define                XY_SWAP_ENABLE          0\r
@@ -35,7 +35,7 @@
 \r
 #define                X_REVERSE_ENABLE        0\r
 \r
-#ifdef TB1_USE_F402\r
+#if(TB1_USE_F402)\r
 #define                Y_REVERSE_ENABLE        0\r
 #else\r
 #define                Y_REVERSE_ENABLE        1\r