Skip to content

Commit

Permalink
Input: elan_i2c - add all valid ic type for i2c/smbus
Browse files Browse the repository at this point in the history
Signed-off-by: Duson Lin <dusonlin@emc.com.tw>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
  • Loading branch information
duson authored and Dmitry Torokhov committed Sep 29, 2015
1 parent d3b367b commit 22ef28b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion drivers/input/mouse/elan_i2c_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,16 +98,25 @@ static int elan_get_fwinfo(u8 iap_version, u16 *validpage_count,
u16 *signature_address)
{
switch (iap_version) {
case 0x00:
case 0x06:
case 0x08:
*validpage_count = 512;
break;
case 0x09:
case 0x03:
case 0x07:
case 0x09:
case 0x0A:
case 0x0B:
case 0x0C:
*validpage_count = 768;
break;
case 0x0D:
*validpage_count = 896;
break;
case 0x0E:
*validpage_count = 640;
break;
default:
/* unknown ic type clear value */
*validpage_count = 0;
Expand Down

0 comments on commit 22ef28b

Please sign in to comment.