aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/mouse/elan_i2c_core.c
diff options
context:
space:
mode:
authorjingle.wu <jingle.wu@emc.com.tw>2020-11-11 20:06:24 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2020-11-11 20:13:12 -0800
commitae3d6083acf60116d4f409677452399547ed2009 (patch)
tree2da90006bde86a0af6766ea2d36e3461078e11f3 /drivers/input/mouse/elan_i2c_core.c
parentInput: resistive-adc-touch - fix kconfig dependency on IIO_BUFFER (diff)
downloadlinux-dev-ae3d6083acf60116d4f409677452399547ed2009.tar.xz
linux-dev-ae3d6083acf60116d4f409677452399547ed2009.zip
Input: elan_i2c - fix firmware update on newer ICs
The argument to iap page type command depends on the firmware page size. Fixes: bfd9b92bc8f9 ("Input: elan_i2c - handle firmware updated on newer ICs") Signed-off-by: Jingle Wu <jingle.wu@emc.com.tw> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/mouse/elan_i2c_core.c')
-rw-r--r--drivers/input/mouse/elan_i2c_core.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/input/mouse/elan_i2c_core.c b/drivers/input/mouse/elan_i2c_core.c
index c599e21a8478..61ed3f5ca219 100644
--- a/drivers/input/mouse/elan_i2c_core.c
+++ b/drivers/input/mouse/elan_i2c_core.c
@@ -497,7 +497,8 @@ static int __elan_update_firmware(struct elan_tp_data *data,
u16 sw_checksum = 0, fw_checksum = 0;
error = data->ops->prepare_fw_update(client, data->ic_type,
- data->iap_version);
+ data->iap_version,
+ data->fw_page_size);
if (error)
return error;