]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3198b74767ad5844a0676d129d6aa60df8bb7a20
tree78f3e9dd4eb025663cf7ec777aa17cec7dff6e08
parent3aea1f19c25dd5c4d83f9f726ded446aee2071a2
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