Input: elan_i2c - add all valid ic type for i2c/smbus
authorduson <dusonlin@emc.com.tw>
Tue, 29 Sep 2015 00:17:01 +0000 (17:17 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 29 Sep 2015 00:18:54 +0000 (17:18 -0700)
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

index b510626220505ded39cc76b54cf86036371113ad..5e1665bbaa0baca86e2c865ba88162be2f209d2e 100644 (file)
@@ -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;