From bcb048ad7477901cb6d70b6311602bee781c0114 Mon Sep 17 00:00:00 2001 From: haojl2 Date: Mon, 2 Sep 2019 20:10:17 +0800 Subject: [PATCH] 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 Reviewed-on: https://gerrit.mot.com/1414062 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Guobin Zhang Submit-Approved: Jira Key --- .../input/touchscreen/focaltech_0flash_mmi/focaltech_core.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/focaltech_0flash_mmi/focaltech_core.c b/drivers/input/touchscreen/focaltech_0flash_mmi/focaltech_core.c index 5b15ab9caa61..a53718f9d638 100755 --- a/drivers/input/touchscreen/focaltech_0flash_mmi/focaltech_core.c +++ b/drivers/input/touchscreen/focaltech_0flash_mmi/focaltech_core.c @@ -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; }