mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
rhode: input touch set reset high when sleep
set reset high as vendor Change-Id: I8c526e740f2fadaeca9784a2866bc58ad7a1cc99 Signed-off-by: dengwei1 <dengwei1@motorola.com> Reviewed-on: https://gerrit.mot.com/2251003 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wang Wang <wangwang1@lenovo.com> Submit-Approved: Jira Key
This commit is contained in:
parent
56dbe16abe
commit
e04e7a7ec5
1 changed files with 3 additions and 1 deletions
|
|
@ -1458,7 +1458,7 @@ int fts_power_source_ctrl(struct fts_ts_data *ts_data, int enable)
|
|||
} else {
|
||||
if (!ts_data->power_disabled) {
|
||||
FTS_DEBUG("regulator disable !");
|
||||
gpio_direction_output(ts_data->pdata->reset_gpio, 0);
|
||||
gpio_direction_output(ts_data->pdata->reset_gpio, 1);
|
||||
msleep(1);
|
||||
ret = regulator_disable(ts_data->vdd);
|
||||
if (ret) {
|
||||
|
|
@ -1471,7 +1471,9 @@ int fts_power_source_ctrl(struct fts_ts_data *ts_data, int enable)
|
|||
}
|
||||
}
|
||||
#if FTS_PINCTRL_EN
|
||||
if (ts_data->gesture_support == true) {
|
||||
fts_pinctrl_select_suspend(ts_data);
|
||||
}
|
||||
#endif
|
||||
ts_data->power_disabled = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue