From 9dab917b02dc1022115f6a820bf64630ed715fd9 Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Tue, 10 Jul 2018 13:07:11 +0800 Subject: [PATCH] input: nova_mmi: update firmware when version is not equal Update firmware when version of bin and touch module is not equal in order to follow moto tradition, also can do flexible firmware update. Change-Id: I448fc6b82785731046ec2ea4fcdab4be0a715e26 Signed-off-by: Yeqing Wang Reviewed-on: https://gerrit.mot.com/1206766 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Jialei Hao Reviewed-by: Jun Weng Reviewed-by: Wei Deng Reviewed-by: Jianqi Yang Submit-Approved: Jira Key --- drivers/input/touchscreen/nova_mmi/nt36xxx_fw_update.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/nova_mmi/nt36xxx_fw_update.c b/drivers/input/touchscreen/nova_mmi/nt36xxx_fw_update.c index 38d105177919..4d331ef8b917 100644 --- a/drivers/input/touchscreen/nova_mmi/nt36xxx_fw_update.c +++ b/drivers/input/touchscreen/nova_mmi/nt36xxx_fw_update.c @@ -131,7 +131,7 @@ int32_t Check_FW_Ver(void) } // compare IC and binary FW version - if (buf[1] > fw_entry->data[FW_BIN_VER_OFFSET]) + if (buf[1] == fw_entry->data[FW_BIN_VER_OFFSET]) return 1; else return 0;