mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
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:
parent
7409103418
commit
e594e189cb
1 changed files with 5 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue