input: synaptics_fw_update: Rectify the package_id parsing
Rectify the package id parsing which aborts firmware upgradation
due to package id mismatch.
CRs-Fixed: 574411
Change-Id: Ib047b8824e270c4ab57c7524c74dfb4dac9378f1
Signed-off-by: Sarada Prasanna Garnayak <c_sgarna@codeaurora.org>
diff --git a/drivers/input/touchscreen/synaptics_fw_update.c b/drivers/input/touchscreen/synaptics_fw_update.c
index 70c1307..7282c2e 100644
--- a/drivers/input/touchscreen/synaptics_fw_update.c
+++ b/drivers/input/touchscreen/synaptics_fw_update.c
@@ -353,7 +353,7 @@
if (img->is_contain_build_info) {
img->firmware_id = extract_uint(data->firmware_id);
- img->package_id = (data->pkg_id_rev_msb << 8) |
+ img->package_id = (data->pkg_id_msb << 8) |
data->pkg_id_lsb;
img->package_revision_id = (data->pkg_id_rev_msb << 8) |
data->pkg_id_rev_lsb;