Input: elan_i2c - use iap_version to get firmware information
authorDuson Lin <dusonlin@emc.com.tw>
Thu, 3 Sep 2015 16:46:45 +0000 (09:46 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 3 Sep 2015 17:00:16 +0000 (10:00 -0700)
commit58f1eae48e5372200553de07b5ecc7574803ee91
tree78f3e9dd4eb025663cf7ec777aa17cec7dff6e08
parentd6f5aef298b5e5bd12e5d3ef111a4d0fc727ca70
Input: elan_i2c - use iap_version to get firmware information

When driver is in IAP mode ic_type query may return 0xff. However
iap_version will always be valid, so let's use it to determine parameters
of the firmware that the controller is supposed to accept.

Signed-off-by: Duson Lin <dusonlin@emc.com.tw>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/elan_i2c_core.c