aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/mouse/elan_i2c_i2c.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input/mouse/elan_i2c_i2c.c')
-rw-r--r--drivers/input/mouse/elan_i2c_i2c.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/input/mouse/elan_i2c_i2c.c b/drivers/input/mouse/elan_i2c_i2c.c
index a0acbbf83bfd..683c840c9dd7 100644
--- a/drivers/input/mouse/elan_i2c_i2c.c
+++ b/drivers/input/mouse/elan_i2c_i2c.c
@@ -259,7 +259,8 @@ static int elan_i2c_get_version(struct i2c_client *client,
259 return 0; 259 return 0;
260} 260}
261 261
262static int elan_i2c_get_sm_version(struct i2c_client *client, u8 *version) 262static int elan_i2c_get_sm_version(struct i2c_client *client,
263 u8 *ic_type, u8 *version)
263{ 264{
264 int error; 265 int error;
265 u8 val[3]; 266 u8 val[3];
@@ -271,6 +272,7 @@ static int elan_i2c_get_sm_version(struct i2c_client *client, u8 *version)
271 } 272 }
272 273
273 *version = val[0]; 274 *version = val[0];
275 *ic_type = val[1];
274 return 0; 276 return 0;
275} 277}
276 278