mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
TP charger mode fix[1/1]
charger mode fix Change-Id: Ie86f496f9823946007de1df4a3f359ade532296c Signed-off-by: hqjiangy <hqjiangy@motorola.com> Reviewed-on: https://gerrit.mot.com/2325014 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com> Reviewed-by: Wei Deng <dengwei1@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
b111dc0500
commit
8f797300e1
1 changed files with 1 additions and 3 deletions
|
|
@ -473,7 +473,6 @@ static int syna_ts_mmi_charger_mode(struct device *dev, int mode)
|
|||
LOGI("Interrupt is closed, so cannot access CHARGER_CONNECTED\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
mutex_lock(&tcm->tp_event_mutex);
|
||||
|
||||
retval = syna_tcm_get_dynamic_config(tcm->tcm_dev,DC_ENABLE_CHARGER_CONNECTED,&cval,RESP_IN_ATTN);
|
||||
if(retval < 0) {
|
||||
|
|
@ -483,7 +482,7 @@ static int syna_ts_mmi_charger_mode(struct device *dev, int mode)
|
|||
if(cval != mode){
|
||||
retval = syna_tcm_set_dynamic_config(tcm->tcm_dev,DC_ENABLE_CHARGER_CONNECTED,mode,RESP_IN_ATTN);
|
||||
if (retval < 0) {
|
||||
LOGE("Failed to get charger_connected mode\n");
|
||||
LOGE("Failed to set charger_connected mode\n");
|
||||
goto exit;
|
||||
}
|
||||
LOGI("%s: charger mode success %d\n",__func__,cval);
|
||||
|
|
@ -492,7 +491,6 @@ static int syna_ts_mmi_charger_mode(struct device *dev, int mode)
|
|||
}
|
||||
exit:
|
||||
|
||||
mutex_unlock(&tcm->tp_event_mutex);
|
||||
return 0;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue