From e594e189cbc18d304ca0a88334a4957124374378 Mon Sep 17 00:00:00 2001 From: zhuwg1 Date: Wed, 2 Mar 2022 19:52:19 +0800 Subject: [PATCH] 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 Reviewed-on: https://gerrit.mot.com/2205278 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jichao Zou Submit-Approved: Jira Key --- .../input/touchscreen/parade_tma5xx_mmi/cyttsp5_ts_mmi.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/parade_tma5xx_mmi/cyttsp5_ts_mmi.c b/drivers/input/touchscreen/parade_tma5xx_mmi/cyttsp5_ts_mmi.c index a71d8a2fd324..3cf78a4e555f 100644 --- a/drivers/input/touchscreen/parade_tma5xx_mmi/cyttsp5_ts_mmi.c +++ b/drivers/input/touchscreen/parade_tma5xx_mmi/cyttsp5_ts_mmi.c @@ -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) {