summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--goodix_ts_core.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/goodix_ts_core.c b/goodix_ts_core.c
index e42836c..13ef6ff 100644
--- a/goodix_ts_core.c
+++ b/goodix_ts_core.c
@@ -1004,8 +1004,7 @@ static int get_self_sensor_data(
cmd->buffer = (u8 *)cd->self_sensing_data;
cmd->size = (tx + rx) * sizeof(uint16_t);
} else {
- /* disable irq & close esd */
- cd->hw_ops->irq_enable(cd, false);
+ /* disable esd */
goodix_ts_blocking_notify(NOTIFY_ESD_OFF, NULL);
ret = -EINVAL;
@@ -1022,8 +1021,7 @@ static int get_self_sensor_data(
cmd->size = (tx + rx) * sizeof(uint16_t);
}
- /* enable irq & esd */
- cd->hw_ops->irq_enable(cd, true);
+ /* enable esd */
goodix_ts_blocking_notify(NOTIFY_ESD_ON, NULL);
}
return ret;