synaptics prob if it matches the value of "mmi,panel_name"

TP:
Determine whether to probe the synaptics driver according to
the "mmi,panel_name".

Change-Id: Ia2552339b5351774107c59befe01505f57b9b5a9
Reviewed-on: https://gerrit.mot.com/1730440
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
litong 2020-08-24 11:56:24 +08:00 • committed by litong20
commit 3ba65e9bfc

View file

@ -4156,6 +4156,13 @@ static int __init syna_tcm_module_init(void)
{
int retval;
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 4, 0))
if (!ts_mmi_is_panel_match("mmi,panel_name", "syna")) {
pr_info("%s failed, the panel is not match the touch driver", __func__);
return false;
}
#endif
retval = syna_tcm_bus_init();
if (retval < 0)
return retval;