mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
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:
parent
610b9f510c
commit
3ba65e9bfc
1 changed files with 7 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue