HID: asus: Fix T100TA touchpad y dimensions
authorHans de Goede <hdegoede@redhat.com>
Sun, 2 Jul 2017 14:34:13 +0000 (16:34 +0200)
committerJiri Kosina <jkosina@suse.cz>
Thu, 20 Jul 2017 14:01:10 +0000 (16:01 +0200)
When adding the initial support I only looked at the maximum coordinates
but the Y axis is inverted, so I should have checked the minimum
coodinates which never reach 0 due to max_y being wrong, fix this.

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

index b6d02ad..b759485 100644 (file)
@@ -107,7 +107,7 @@ static const struct asus_touchpad_info asus_i2c_tp = {
 
 static const struct asus_touchpad_info asus_t100ta_tp = {
        .max_x = 2240,
-       .max_y = 1758,
+       .max_y = 1120,
        .contact_size = 5,
        .max_contacts = 5,
 };