Does not distinguish 9916 and 9916P touch chips.

Because 9916 and 9916P use the same firmware file and configuration file,
so the chip does not need to distinguish between 9916 and 9916P.

Change-Id: I08921833b01ee1700bd6c81bbf10e204e57b080a
Reviewed-on: https://gerrit.mot.com/2070699
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:
litong20 2021-09-23 20:14:33 +08:00 • committed by litong
commit d0d2dc4963

View file

@ -35,6 +35,7 @@ static int goodix_ts_mmi_methods_get_vendor(struct device *dev, void *cdata) {
return scnprintf(TO_CHARP(cdata), TS_MMI_MAX_VENDOR_LEN, "%s", "goodix");
}
#define TS_MMI_CHIP_INFO_LEN 7 /* GT9916 */
static int goodix_ts_mmi_methods_get_productinfo(struct device *dev, void *cdata) {
int ret;
struct platform_device *pdev;
@ -44,7 +45,7 @@ static int goodix_ts_mmi_methods_get_productinfo(struct device *dev, void *cdata
GET_GOODIX_DATA(dev);
ret = core_data->hw_ops->read_version(core_data, &fw_version, false);
return scnprintf(TO_CHARP(cdata), TS_MMI_MAX_INFO_LEN, "GT%s",
return scnprintf(TO_CHARP(cdata), TS_MMI_CHIP_INFO_LEN, "GT%s",
fw_version.patch_pid);
}