From 2157f5c85e324eea08d4ea7899457a8642431f11 Mon Sep 17 00:00:00 2001 From: litong Date: Tue, 11 Feb 2020 12:25:40 +0800 Subject: [PATCH] Solve the power on problem of Synaptics touchscreen TP: Modify the power on process of synaptics touchscreen to solve the problem of power failure. Change-Id: I8963e3db920de3830b81eb95611cce1696ac111f Reviewed-on: https://gerrit.mot.com/1496299 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jialei Hao Reviewed-by: Jianqi Yang Submit-Approved: Jira Key --- .../input/touchscreen/synaptics_tcm_mmi_v2/synaptics_ts_mmi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/input/touchscreen/synaptics_tcm_mmi_v2/synaptics_ts_mmi.c b/drivers/input/touchscreen/synaptics_tcm_mmi_v2/synaptics_ts_mmi.c index 3ab41b2fb67a..cc184f4e3401 100644 --- a/drivers/input/touchscreen/synaptics_tcm_mmi_v2/synaptics_ts_mmi.c +++ b/drivers/input/touchscreen/synaptics_tcm_mmi_v2/synaptics_ts_mmi.c @@ -337,7 +337,7 @@ exit: return retval; } -static int syna_ts_mmi_pre_resume(struct device *dev) +static int syna_ts_mmi_post_resume(struct device *dev) { int retval; struct syna_tcm_hcd *tcm_hcd; @@ -431,7 +431,7 @@ static struct ts_mmi_methods syna_ts_mmi_methods = { /* Firmware */ .firmware_update = syna_ts_firmware_update, /* PM callback */ - .pre_resume = syna_ts_mmi_pre_resume, + .post_resume = syna_ts_mmi_post_resume, .pre_suspend = syna_ts_mmi_pre_suspend, .post_suspend = syna_ts_mmi_post_suspend, };