From 67189bd53e5bd981fd041dde977e3accecd795f4 Mon Sep 17 00:00:00 2001 From: litong Date: Wed, 11 Dec 2019 19:24:36 +0800 Subject: [PATCH] Show Panel supplier TP: Solve the problem that read the panel_supplier node is empty. Change-Id: I23d0b0d0dc4936259c09f30f585759556658e2b8 Reviewed-on: https://gerrit.mot.com/1470240 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Jialei Hao Reviewed-by: Jianqi Yang Submit-Approved: Jira Key --- .../input/touchscreen/touchscreen_mmi/touchscreen_mmi_panel.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/touchscreen_mmi/touchscreen_mmi_panel.c b/drivers/input/touchscreen/touchscreen_mmi/touchscreen_mmi_panel.c index 37876480dc7b..ab80761bab19 100644 --- a/drivers/input/touchscreen/touchscreen_mmi/touchscreen_mmi_panel.c +++ b/drivers/input/touchscreen/touchscreen_mmi/touchscreen_mmi_panel.c @@ -89,8 +89,10 @@ int ts_mmi_parse_dt(struct ts_mmi_dev *touch_cdev, } dev_info(DEV_TS, "%s: mmi,panel_name %s\n", __func__, supplier); + s = (char *)supplier; /* skip dsi_ part */ - s = (char *)supplier + 4; + if (!strncmp(supplier, "dsi_", 4)) + s += 4; d = touch_cdev->panel_supplier; while (*s != '_') *d++ = *s++;