summaryrefslogtreecommitdiff
path: root/drivers/input/mouse/elan_i2c.h
diff options
context:
space:
mode:
authorKT Liao <ktalex.liao@gmail.com>2016-11-27 20:59:29 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2017-05-11 17:44:23 -0700
commita2eaf299d134cfe780c68c771f88d81516c1e70d (patch)
tree76c6b5e035fefb17e15d4cfc60bdda871e1be9c0 /drivers/input/mouse/elan_i2c.h
parentc5928551fd41b2eecdad78fa2be2a4a13ed5fde9 (diff)
Input: elan_i2c - add support for fetching chip type on newer hardware
Newer Elantech hardware requires different way of fetching chip type and version data. Signed-off-by: KT Liao <kt.liao@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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/input/mouse/elan_i2c.h b/drivers/input/mouse/elan_i2c.h
index c0ec26118732..61c202436250 100644
--- a/drivers/input/mouse/elan_i2c.h
+++ b/drivers/input/mouse/elan_i2c.h
@@ -58,7 +58,7 @@ struct elan_transport_ops {
int (*get_version)(struct i2c_client *client, bool iap, u8 *version);
int (*get_sm_version)(struct i2c_client *client,
- u8* ic_type, u8 *version);
+ u16 *ic_type, u8 *version);
int (*get_checksum)(struct i2c_client *client, bool iap, u16 *csum);
int (*get_product_id)(struct i2c_client *client, u16 *id);
@@ -82,6 +82,7 @@ struct elan_transport_ops {
int (*get_report)(struct i2c_client *client, u8 *report);
int (*get_pressure_adjustment)(struct i2c_client *client,
int *adjustment);
+ int (*get_pattern)(struct i2c_client *client, u8 *pattern);
};
extern const struct elan_transport_ops elan_smbus_ops, elan_i2c_ops;