\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
\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
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
}\r
return 0;\r
}\r
-\r
+#endif\r
\r
static enum hrtimer_restart goodix_ts_timer_func(struct hrtimer *timer)\r
{\r
{\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
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
kfree(ts);\r
err_alloc_data_failed:\r
err_check_functionality_failed:\r
-err_create_proc_entry:\r
return ret;\r
}\r
\r
-#define SHUTDOWN_PORT pdata->gpio_reset //SHUTDOWN¹Ü½ÅºÅ
+#define SHUTDOWN_PORT pdata->gpio_reset //SHUTDOWN�ܽź�
#define INT_PORT pdata->gpio_pendown
#ifdef INT_PORT
#define FLAG_UP 0
#define FLAG_DOWN 1
-//set GT801 PLUS trigger mode,ֻÄÜÉèÖÃ0»ò1
+//set GT801 PLUS trigger mode,ֻ������0��1
#define INT_TRIGGER 1
#define POLL_TIME 10 //actual query spacing interval:POLL_TIME+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