mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
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:
parent
1d06f84613
commit
bcb048ad74
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue