mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
fogo/motorola:Fogo 5g na optimize stowed mode
fogo: Fogo 5g na optimize stowed mode Change-Id: I6bc4c92d337361e2568a21f8b2d1d81da14eab19 Signed-off-by: lixuehan <hq126@motorola.com> Reviewed-on: https://gerrit.mot.com/2782475 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:
parent
fe31062b8c
commit
0fa0bc5060
1 changed files with 8 additions and 7 deletions
|
|
@ -3871,6 +3871,14 @@ int32_t nvt_ts_suspend(struct device *dev)
|
|||
|
||||
ts->bTouchIsAwake = 0;
|
||||
|
||||
#if defined(NVT_SENSOR_EN) && defined(NOVA_STOWED_MODE_EN)
|
||||
if (ts->should_enable_gesture && ts->get_stowed && (!ts->bTouchIsAwake)) {
|
||||
nvt_cmd_ext_store(NVT_STOWED_MODE_CMD, NVT_STOWED_MODE_EN);
|
||||
NVT_LOG("Enable stowed mode suspend\n");
|
||||
ts->set_stowed = ts->get_stowed;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if WAKEUP_GESTURE
|
||||
#ifdef NVT_SENSOR_EN
|
||||
if (ts->should_enable_gesture) {
|
||||
|
|
@ -3903,13 +3911,6 @@ int32_t nvt_ts_suspend(struct device *dev)
|
|||
#endif // WAKEUP_GESTURE
|
||||
|
||||
|
||||
#if defined(NVT_SENSOR_EN) && defined(NOVA_STOWED_MODE_EN)
|
||||
if (ts->should_enable_gesture && ts->get_stowed && (!ts->bTouchIsAwake)) {
|
||||
nvt_cmd_ext_store(NVT_STOWED_MODE_CMD, NVT_STOWED_MODE_EN);
|
||||
NVT_LOG("Enable stowed mode suspend\n");
|
||||
ts->set_stowed = ts->get_stowed;
|
||||
}
|
||||
#endif
|
||||
|
||||
mutex_unlock(&ts->lock);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue