touch screen:clean gt818_ts.c compile warning
authorroot <root@hhb-desktop.(none)>
Fri, 13 Jan 2012 10:56:03 +0000 (18:56 +0800)
committerroot <root@hhb-desktop.(none)>
Fri, 13 Jan 2012 10:56:03 +0000 (18:56 +0800)
drivers/input/touchscreen/gt818_ts.c
drivers/input/touchscreen/gt818_ts.h

index 8dd6b5d20f94279ae9d52c8c1bd7d88d066821b9..857607e8c1829a30662cd1357fc23b2f11cfe3b0 100644 (file)
@@ -54,14 +54,12 @@ static struct workqueue_struct *goodix_wq;
 \r
 static const char *gt818_ts_name = "Goodix Capacitive TouchScreen";\r
 \r
-static struct point_queue finger_list;\r
+//static struct point_queue finger_list;\r
 \r
 struct i2c_client * i2c_connect_client = NULL;\r
 \r
 //EXPORT_SYMBOL(i2c_connect_client);\r
 \r
-static struct proc_dir_entry *goodix_proc_entry;\r
-       \r
 #ifdef CONFIG_HAS_EARLYSUSPEND\r
 static void goodix_ts_early_suspend(struct early_suspend *h);\r
 static void goodix_ts_late_resume(struct early_suspend *h);\r
@@ -235,7 +233,6 @@ static void goodix_ts_work_func(struct work_struct *work)
 \r
        u8  finger = 0;\r
        u8  key = 0;\r
-       u8 retry = 0;\r
        unsigned int  count = 0;\r
        unsigned int position = 0;      \r
        int temp = 0;\r
@@ -407,7 +404,7 @@ XFER_ERROR:
                enable_irq(ts->client->irq);\r
 \r
 }\r
-\r
+#if 0\r
 static int test_suspend_resume(struct gt818_ts_data *ts){\r
        while(1){\r
                ts->power(ts, 0);\r
@@ -417,7 +414,7 @@ static int test_suspend_resume(struct gt818_ts_data *ts){
        }\r
        return 0;\r
 }\r
-\r
+#endif\r
 \r
 static enum hrtimer_restart goodix_ts_timer_func(struct hrtimer *timer)\r
 {\r
@@ -502,7 +499,6 @@ static int goodix_ts_probe(struct i2c_client *client, const struct i2c_device_id
 {\r
        int ret = 0;\r
        int retry=0;\r
-       u8 goodix_id[3] = {0,0xff,0};\r
        struct gt818_ts_data *ts;\r
 \r
        struct gt818_platform_data *pdata;\r
@@ -564,6 +560,7 @@ static int goodix_ts_probe(struct i2c_client *client, const struct i2c_device_id
                dev_err(&client->dev, "Warnning: I2C communication might be ERROR!\n");\r
                goto err_i2c_failed;\r
        }       \r
+\r
 #endif\r
 \r
        for(retry = 0; retry < 3; retry++)\r
@@ -718,7 +715,6 @@ err_i2c_failed:
        kfree(ts);\r
 err_alloc_data_failed:\r
 err_check_functionality_failed:\r
-err_create_proc_entry:\r
        return ret;\r
 }\r
 \r
index e969bc4ad08b794bc7361b3a003f2c5c41596113..ecdc4a0612be838d25f8fabb42f2dcd91112197b 100644 (file)
@@ -41,7 +41,7 @@
 
 
 
-#define SHUTDOWN_PORT  pdata->gpio_reset                       //SHUTDOWN¹Ü½ÅºÅ
+#define SHUTDOWN_PORT  pdata->gpio_reset                       //SHUTDOWN�ܽź�
 #define INT_PORT               pdata->gpio_pendown
 
 #ifdef INT_PORT
@@ -55,7 +55,7 @@
 
 #define FLAG_UP                0
 #define FLAG_DOWN      1
-//set GT801 PLUS trigger mode,ֻÄÜÉèÖÃ0»ò
+//set GT801 PLUS trigger mode,ֻ������0��
 #define INT_TRIGGER            1
 #define POLL_TIME              10      //actual query spacing interval:POLL_TIME+6
 
@@ -66,8 +66,6 @@
        #define MAX_FINGER_NUM  1       
 #endif
 
-#define swap(x, y) do { typeof(x) z = x; x = y; y = z; } while (0)
-
 #define READ_TOUCH_ADDR_H      0x07
 #define READ_TOUCH_ADDR_L      0x12
 #define READ_KEY_ADDR_H        0x07