mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 00:24:41 -04:00
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:
parent
c6c98fe6ef
commit
d0d2dc4963
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue