nova_0flash_mmi: enable irq by gester status

TP:
resture irq based on gesture function status, not by sensor flag.
This can make sure TP works normal all the time.

Change-Id: I095413b29d63319dda300c3b5f3c24e9e703416f
Signed-off-by: haojl2 <haojl2@motorola.com>
(cherry picked from commit 920337119a66daba4413d7eade7dc1885b2ec8f7)
Reviewed-on: https://gerrit.mot.com/1448176
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
haojl2 2019-10-16 19:14:00 +08:00 • committed by Yeqing Wang
commit 968871325d

View file

@ -2449,7 +2449,7 @@ static int32_t nvt_ts_resume(struct device *dev)
nvt_irq_enable(true);
#else
#ifdef NVT_SENSOR_EN
if (!ts->should_enable_gesture)
if (!ts->gesture_enabled)
nvt_irq_enable(true);
#endif
#endif