focaltech_0flash_mmi: clear flag after lazy enable done

TP:
After laze enable is done, clear this flag.

Change-Id: I7bcfce54f4976f962a6443fe9962c1e2968b1ba1
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1414062
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
haojl2 2019-09-02 20:10:17 +08:00 • committed by Jialei Hao
commit bcb048ad74

View file

@ -2172,9 +2172,12 @@ static int _fts_ts_resume(struct device *dev)
#endif
#ifdef FOCALTECH_PALM_SENSOR_EN
CHECK_LAZY_SET:
if (ts_data->palm_detection_lazy_set != PALM_SENSOR_LAZY_SET_NONE)
if (ts_data->palm_detection_lazy_set != PALM_SENSOR_LAZY_SET_NONE) {
_fts_palm_sensor_set_enable(
(ts_data->palm_detection_lazy_set == PALM_SENSOR_LAZY_SET_ENABLE) ? 1 : 0);
FTS_INFO("Palm sensor lazy set done, clear flag.");
ts_data->palm_detection_lazy_set = PALM_SENSOR_LAZY_SET_NONE;
}
#endif
return 0;
}