mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
channel input: fix ilitek touch fw ver
this change fix that can not get the fw version first time Change-Id: I2c63f32d0c210c3b0bfc1cde15dbedb2cd66e422 Signed-off-by: dengwei1 <dengwei1@motorola.com> Reviewed-on: https://gerrit.mot.com/1269454 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
86b35199c3
commit
d4e70c0c3a
2 changed files with 2 additions and 0 deletions
|
|
@ -1170,6 +1170,7 @@ static int convert_hex_array(void)
|
|||
for (i = 0 ; i < ARRAY_SIZE(core_firmware->old_fw_ver); i++) {
|
||||
if (core_firmware->old_fw_ver[i] != core_firmware->new_fw_ver[i]) {
|
||||
ipio_info("FW version is different, preparing to upgrade FW\n");
|
||||
boot_update_flag = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1913,6 +1913,7 @@ static DEVICE_ATTR(doreflash, 0220, NULL, do_reflash_store);
|
|||
|
||||
static ssize_t drv_build_id_show(struct device *pDevice, struct device_attribute *pAttr, char *pBuf)
|
||||
{
|
||||
core_config_get_fw_ver();
|
||||
ipio_info ("*** %s() Fw Version = V%d.%d.%d.%d***\n", __func__, core_config->firmware_ver[1], core_config->firmware_ver[2], core_config->firmware_ver[3], core_config->firmware_ver[4]);
|
||||
|
||||
return scnprintf(pBuf, PAGE_SIZE, "%02x-%02x\n", core_config->firmware_ver[2], core_config->firmware_ver[3]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue