Change config_id format for FW upgrade

Change config_id format to "%02d%02d%02d%02X",so that we can
easily identify touch firmware revision.

Change-Id: If00c358d674f677e3b025936325f96abdd25e3b4
Signed-off-by: zhuwg1 <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2205278
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:
zhuwg1 2022-03-02 19:52:19 +08:00
commit e594e189cb

View file

@ -100,7 +100,11 @@ static int cyttsp5_ts_mmi_methods_get_config_id(struct device *dev, void *cdata)
"%s: img vers:0x%04X ,revctrl vers:0x%04X\n", __func__,
fw_ver_img, fw_revctrl_img);
return snprintf(TO_CHARP(cdata), TS_MMI_MAX_ID_LEN, "%04x", le32_to_cpu(fw_revctrl_img));
return snprintf(TO_CHARP(cdata), TS_MMI_MAX_ID_LEN, "%02d%02d%02d%02x",
(fw_revctrl_img>>24)&0xff,
(fw_revctrl_img>>16)&0xff,
(fw_revctrl_img>>8)&0xff,
(fw_revctrl_img)&0xff);
}
static int cyttsp5_ts_mmi_methods_get_bus_type(struct device *dev, void *idata) {