Commit 201b34f6 authored by Mis012's avatar Mis012

remove stupid code to fix spurious interrupts

parent ec5306f0
......@@ -160,8 +160,7 @@
//pinctrl-0 = <&tsp_en_active &ts_int_active>;
//pinctrl-1 = <&tsp_en_suspend &ts_int_suspend>;
//vddo-supply = <&pm8916_l6>; //TODO actually implement this
vdd_enable-gpio = <&msmgpio 73 0x01>;//TODO LOW?
irq-gpio = <&msmgpio 13 0x00>; //TODO HIGH?
vdd_enable-gpio = <&msmgpio 73 GPIO_ACTIVE_LOW>;
//zinitix,x_resolution = <540>;
//zinitix,y_resolution = <960>;
//zinitix,page_size = <128>;
......
......@@ -22,15 +22,7 @@
#include <asm/unaligned.h>
//FIXME ↓
/* ESD Protection */
/*second : if 0, no use. if you have to use, 3 is recommended*/
#define ESD_TIMER_INTERVAL 1
#define SCAN_RATE_HZ 100
#define CHECK_ESD_TIMER 3
#define MAX_RAW_DATA_SZ 576 /* 32x18 */
#define MAX_TRAW_DATA_SZ \
(MAX_RAW_DATA_SZ + 4*MAX_SUPPORTED_FINGER_NUM + 2)
/* preriod raw data interval */
#define RAWDATA_DELAY_FOR_HOST 100
......@@ -45,13 +37,6 @@
////////////
#define TOUCH_SEC_MODE 48
#define TOUCH_REF_MODE 10
#define TOUCH_NORMAL_MODE 5
#define TOUCH_DELTA_MODE 3
#define TOUCH_DND_MODE 6
#define TOUCH_PDND_MODE 11
/* Other Things */
#define INIT_RETRY_CNT 3
#define I2C_SUCCESS 0
......@@ -245,7 +230,6 @@ struct bt541_ts_data {
struct i2c_client *client;
struct input_dev *input_dev;
struct gpio_desc *vdd_enable_gpio;
struct gpio_desc *irq_gpio;
struct capa_info cap_info;
struct point_info touch_info;
int touch_mode;
......@@ -523,13 +507,7 @@ static bool init_touch(struct bt541_ts_data *bt541)
return 1;
}
}
#if ESD_TIMER_INTERVAL
if (write_reg(client, BT541_PERIODICAL_INTERRUPT_INTERVAL,
SCAN_RATE_HZ * ESD_TIMER_INTERVAL) != I2C_SUCCESS)
return 1;
read_data(client, BT541_PERIODICAL_INTERRUPT_INTERVAL, (u8 *)&reg_val, 2);
#endif
printk(KERN_INFO "successfully initialized\r\n");
return 0;
}
......@@ -548,13 +526,6 @@ static int zinitix_init_gpio(struct bt541_ts_data *bt541)
return ret;
}
bt541->irq_gpio = devm_gpiod_get(&client->dev, "irq", GPIOD_OUT_HIGH); //HIGH?
if (IS_ERR(bt541->irq_gpio)) {
ret = PTR_ERR(bt541->vdd_enable_gpio);
dev_err(&client->dev, "cannot get irq_gpio %d\n", ret);
return ret;
}
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment