mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 22:52:35 +02:00
A22:modify touch screen driver according to its firmware
This commit is contained in:
parent
4e8be2ebc5
commit
9ff627d895
|
|
@ -344,14 +344,14 @@ static void ili2102_ts_work_func(struct work_struct *work)
|
|||
msg[0].flags = ts->client->flags;
|
||||
msg[0].len = 1;
|
||||
msg[0].buf = &start_reg;
|
||||
msg[0].scl_rate = 400*1000;
|
||||
msg[0].udelay = 250;
|
||||
msg[0].scl_rate = 200*1000;
|
||||
msg[0].udelay = 200;
|
||||
|
||||
msg[1].addr = ts->client->addr;
|
||||
msg[1].flags = ts->client->flags | I2C_M_RD;
|
||||
msg[1].len = 9;
|
||||
msg[1].buf = buf;
|
||||
msg[1].scl_rate = 400*1000;
|
||||
msg[1].scl_rate = 200*1000;
|
||||
msg[1].udelay = 0;
|
||||
|
||||
ret = i2c_transfer(ts->client->adapter, msg, 2);
|
||||
|
|
@ -419,7 +419,7 @@ static void ili2102_ts_work_func(struct work_struct *work)
|
|||
if(syn_flag)
|
||||
input_sync(ts->input_dev);
|
||||
out:
|
||||
#if 1
|
||||
#if 0
|
||||
if(ts->pendown)
|
||||
{
|
||||
schedule_delayed_work(&ts->work, msecs_to_jiffies(12));
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user