summaryrefslogtreecommitdiff
path: root/drivers/input/mouse/elan_i2c.h
diff options
context:
space:
mode:
authorjingle.wu <jingle.wu@emc.com.tw>2020-11-12 07:06:24 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2020-11-12 07:13:12 +0300
commitae3d6083acf60116d4f409677452399547ed2009 (patch)
tree2da90006bde86a0af6766ea2d36e3461078e11f3 /drivers/input/mouse/elan_i2c.h
parent676650d007e06fddcf3fe38238251d71bd179641 (diff)
downloadlinux-ae3d6083acf60116d4f409677452399547ed2009.tar.xz
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.h')
-rw-r--r--drivers/input/mouse/elan_i2c.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/mouse/elan_i2c.h b/drivers/input/mouse/elan_i2c.h
index c75b00c45d75..36e3cd908671 100644
--- a/drivers/input/mouse/elan_i2c.h
+++ b/drivers/input/mouse/elan_i2c.h
@@ -78,7 +78,7 @@ struct elan_transport_ops {
int (*iap_reset)(struct i2c_client *client);
int (*prepare_fw_update)(struct i2c_client *client, u16 ic_type,
- u8 iap_version);
+ u8 iap_version, u16 fw_page_size);
int (*write_fw_block)(struct i2c_client *client, u16 fw_page_size,
const u8 *page, u16 checksum, int idx);
int (*finish_fw_update)(struct i2c_client *client,