mirror of
https://github.com/hardkernel/linux.git
synced 2026-04-16 10:30:46 +09:00
rk30:modify goodix touchscreen irq operation
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user