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:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user