Input: elan_i2c - enable ELAN0100 acpi panels
authorMichele Curti <michele.curti@gmail.com>
Mon, 24 Aug 2015 17:49:29 +0000 (10:49 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 24 Aug 2015 17:55:49 +0000 (10:55 -0700)
Enable ELAN0100 touchpad driver, found on a Asus X205TA laptop, to
gai 2,3 fingers tap and 2 fingers scroll.

Signed-off-by: Michele Curti <michele.curti@gmail.com>
Reviewed-by: Duson Lin <dusonlin@emc.com.tw>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/hid/hid-core.c
drivers/input/mouse/elan_i2c_core.c

index 279898c0a160636ed178aa2586f3d3f4ed156c1c..3028c1687a517cd5aa05d7387532d3a14079da26 100644 (file)
@@ -2268,6 +2268,7 @@ static const struct hid_device_id hid_ignore_list[] = {
        { HID_USB_DEVICE(USB_VENDOR_ID_DREAM_CHEEKY, 0x0004) },
        { HID_USB_DEVICE(USB_VENDOR_ID_DREAM_CHEEKY, 0x000a) },
        { HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, 0x0400) },
+       { HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, 0x0401) },
        { HID_USB_DEVICE(USB_VENDOR_ID_ESSENTIAL_REALITY, USB_DEVICE_ID_ESSENTIAL_REALITY_P5) },
        { HID_USB_DEVICE(USB_VENDOR_ID_ETT, USB_DEVICE_ID_TC5UH) },
        { HID_USB_DEVICE(USB_VENDOR_ID_ETT, USB_DEVICE_ID_TC4UM) },
index 67388f42ed9a08f3decf07a98c0d36bc082bfb2b..bbdaedc09261e3a6751618dfbb67818f014e3984 100644 (file)
@@ -98,6 +98,9 @@ static int elan_get_fwinfo(u8 ic_type, u16 *vaildpage_count,
                           u16 *signature_address)
 {
        switch(ic_type) {
+       case 0x08:
+               *vaildpage_count = 512;
+               break;
        case 0x09:
                *vaildpage_count = 768;
                break;
@@ -1165,6 +1168,7 @@ MODULE_DEVICE_TABLE(i2c, elan_id);
 #ifdef CONFIG_ACPI
 static const struct acpi_device_id elan_acpi_id[] = {
        { "ELAN0000", 0 },
+       { "ELAN0100", 0 },
        { "ELAN0600", 0 },
        { }
 };