touch: goodix: handle suspend/resume in probe fail cases

In case of goodix probe failure, avoid touch suspend/ resume
callbacks from dpms panel event notifier.

Change-Id: Ib3be59e02296a3edd2bb8ec39c5fdbd1cc25ae61
Signed-off-by: Raviteja Tamatam <quic_travitej@quicinc.com>
This commit is contained in:
Raviteja Tamatam
2022-05-02 11:11:16 -07:00
父節點 16ca82b228
當前提交 fb8b1097a2

查看文件

@@ -2272,6 +2272,9 @@ static int goodix_ts_suspend_helper(void *data)
{
struct goodix_ts_core *core_data = data;
if (!core_data || core_module_prob_sate != CORE_MODULE_PROB_SUCCESS)
return 0;
return goodix_ts_suspend(core_data);
}
@@ -2279,6 +2282,9 @@ static int goodix_ts_resume_helper(void *data)
{
struct goodix_ts_core *core_data = data;
if (!core_data || core_module_prob_sate != CORE_MODULE_PROB_SUCCESS)
return 0;
return goodix_ts_resume(core_data);
}