mirror of
https://github.com/torvalds/linux.git
synced 2026-06-12 08:43:42 +02:00
rk30:modify goodix touchscreen irq operation
This commit is contained in:
parent
a4e470fc1a
commit
f1efb534d5
|
|
@ -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 @@ static int goodix_update_write(struct file *filp, const char __user *buff, unsig
|
|||
{
|
||||
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…
Reference in New Issue
Block a user