rk30:modify goodix touchscreen irq operation
This commit is contained in:
parent
a4e470fc1a
commit
f1efb534d5
1 changed files with 3 additions and 3 deletions
|
|
@ -804,7 +804,7 @@ static int rk_ts_probe(struct i2c_client *client, const struct i2c_device_id *id
|
|||
ret = request_irq(ts->irq, rk_ts_irq_handler ,IRQ_TYPE_LEVEL_LOW,client->name, ts);
|
||||
if (ret != 0) {
|
||||
printk(KERN_ALERT "Cannot allocate ts INT!ERRNO:%d\n", ret);
|
||||
gpio_free(irq_to_gpio(ts->irq));
|
||||
gpio_free(ts->irq_pin);
|
||||
goto err_input_register_device_failed;
|
||||
}
|
||||
}
|
||||
|
|
@ -1383,13 +1383,13 @@ rewrite:
|
|||
{
|
||||
printk(KERN_INFO"Disable TS int!\n");
|
||||
g_enter_isp = 1;
|
||||
disable_irq(gpio_to_irq(ts->irq));
|
||||
disable_irq(ts->irq);
|
||||
}
|
||||
else if(cmd[1] == CMD_ENABLE_TP)
|
||||
{
|
||||
printk(KERN_INFO"Enable TS int!\n");
|
||||
g_enter_isp = 0;
|
||||
enable_irq(gpio_to_irq(ts->irq));
|
||||
enable_irq(ts->irq);
|
||||
}
|
||||
else if(cmd[1] == CMD_READ_VER)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue