}
/***************flash********************/
-
+#if 0
static int chip_flash_init(struct i2c_client *client)
{
unsigned char buf[2];
return ret;
}
+#endif
static int chip_read_bus_status(struct i2c_client *client,unsigned char *rx_buf)
{
static int chip_write_flash(struct i2c_client *client)
{
unsigned char buf[14];
+#if 0
unsigned char bus_status[1];
+#endif
int sec,cod,sec_8byte_num;
int flash_addr;
int ret = 0;
\r
static int vtl_ts_config(struct ts_info *ts)\r
{\r
- struct device *dev;\r
+ struct device *dev = &ts->driver->client->dev;\r
//struct ts_config_info *ts_config_info; \r
int err;\r
- \r
- DEBUG();\r
- dev = &ts->driver->client->dev;\r
- \r
struct device_node *np = dev->of_node;\r
enum of_gpio_flags rst_flags;\r
unsigned long irq_flags;\r
int val;\r
+\r
+ DEBUG();\r
/* ts config */\r
ts->config_info.touch_point_number = TOUCH_POINT_NUM;\r
if(dev->platform_data !=NULL)\r
\r
return pg_ts;\r
}\r
+#if 0\r
static void vtl_ts_free_gpio(void)\r
{\r
struct ts_info *ts;\r
\r
gpio_free(ts->config_info.rst_gpio_number); \r
}\r
+#endif\r
\r
void vtl_ts_hw_reset(void)\r
{\r
\r
static void vtl_ts_report_xy_coord(struct ts_info *ts)\r
{\r
- int i;\r
int id;\r
int sync;\r
int x, y;\r
return 0;\r
}\r
\r
-static void vtl_ts_early_suspend(struct early_suspend *handler)\r
+static int vtl_ts_early_suspend(struct tp_device *tp)\r
{\r
struct ts_info *ts; \r
ts =pg_ts;\r
DEBUG();\r
\r
vtl_ts_suspend(ts->driver->client, PMSG_SUSPEND);\r
+\r
+ return 0;\r
}\r
\r
-static void vtl_ts_early_resume(struct early_suspend *handler)\r
+static int vtl_ts_early_resume(struct tp_device *tp)\r
{\r
struct ts_info *ts; \r
ts =pg_ts;\r
DEBUG();\r
\r
vtl_ts_resume(ts->driver->client);\r
+\r
+ return 0;\r
}\r
\r
int vtl_ts_remove(struct i2c_client *client)\r
ts->driver->proc_entry = NULL;\r
}\r
\r
-ERR_PROC_ENTRY:\r
+/* ERR_PROC_ENTRY: */\r
if(ts->driver->input_dev){\r
input_unregister_device(ts->driver->input_dev);\r
input_free_device(ts->driver->input_dev);\r
int vtl_ts_probe(struct i2c_client *client, const struct i2c_device_id *id)\r
{\r
int err = -1;\r
- unsigned char chip_id = 0xff;\r
struct ts_info *ts;\r
struct device *dev;\r
\r