HID: elan: Add USB-id for HP x2 10-n000nd touchpad
authorHans de Goede <hdegoede@redhat.com>
Wed, 11 Jul 2018 10:38:36 +0000 (12:38 +0200)
committerJiri Kosina <jkosina@suse.cz>
Tue, 17 Jul 2018 13:25:40 +0000 (15:25 +0200)
Now that we query all the parameters, adding support for new hardware
is easy. This commit adds support for the touchpad found on the
HP x2 10-n000nd touchpad 2-in-1.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-elan.c
drivers/hid/hid-ids.h

index ae1e24061c0a9f6f6978fd2cf52b17a7d7ad63af..4b050d395ecc6d7785f59abed51562b618a8b901 100644 (file)
@@ -470,6 +470,8 @@ static void elan_remove(struct hid_device *hdev)
 }
 
 static const struct hid_device_id elan_devices[] = {
+       { HID_USB_DEVICE(USB_VENDOR_ID_ELAN, USB_DEVICE_ID_HP_X2),
+         .driver_data = ELAN_HAS_LED },
        { HID_USB_DEVICE(USB_VENDOR_ID_ELAN, USB_DEVICE_ID_HP_X2_10_COVER),
          .driver_data = ELAN_HAS_LED },
        { }
index c7981ddd8776377faa9a238b8e58d6162054b9c6..28f96de2a84ea463037db95f1d9ec64fca0436e6 100644 (file)
 #define USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH_A001      0xa001
 
 #define USB_VENDOR_ID_ELAN             0x04f3
+#define USB_DEVICE_ID_HP_X2            0x074d
 #define USB_DEVICE_ID_HP_X2_10_COVER   0x0755
 
 #define USB_VENDOR_ID_ELECOM           0x056e