mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 04:12:04 -04:00
kernel/fogo:Optimize the flow of stowed mode in resume by ddi
fogo: Optimize the flow of stowed mode in resume by ddi Change-Id: Ic2f17437b02d85ef36e6b3838a8dba9f4579a063 Signed-off-by: lixuehan <hq126@motorola.com> Reviewed-on: https://gerrit.mot.com/2764171 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver 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:
parent
7487159136
commit
3d7ebdbd71
2 changed files with 7 additions and 2 deletions
|
|
@ -182,6 +182,11 @@ static void ilitek_resume_by_ddi_work(struct work_struct *work)
|
|||
}
|
||||
|
||||
ili_irq_enable();
|
||||
#if defined (ILI_STOWED_MODE_EN)&& defined(ILI_SENSOR_EN)
|
||||
ilits->set_stowed = 0;
|
||||
ilits->prox_near = false;
|
||||
ILI_ERR("ilits->set_stowed = %d,ilits->prox_near = %d\n",ilits->set_stowed,ilits->prox_near);
|
||||
#endif
|
||||
ILI_INFO("TP resume end by wq\n");
|
||||
ili_wq_ctrl(WQ_ESD, ENABLE);
|
||||
ili_wq_ctrl(WQ_BAT, ENABLE);
|
||||
|
|
|
|||
|
|
@ -4086,7 +4086,7 @@ static ssize_t stowed_store(struct device *dev,
|
|||
ILI_INFO("Failed to convert value.\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
ilits->set_stowed = ilits->get_stowed;
|
||||
ilits->get_stowed = mode;
|
||||
if (ilits->set_stowed == mode) {
|
||||
ILI_INFO("The value = %lu is same, so not to write", mode);
|
||||
ret = size;
|
||||
|
|
@ -4107,7 +4107,7 @@ static ssize_t stowed_store(struct device *dev,
|
|||
return ret;
|
||||
}
|
||||
|
||||
ilits->get_stowed = mode;
|
||||
ilits->set_stowed = mode;
|
||||
ret = size;
|
||||
ILI_INFO("Success to set stowed mode %lu\n", mode);
|
||||
mutex_unlock(&ilits->touch_mutex);
|
||||
|
|
|
|||
Loading…
Reference in a new issue