From: Hans de Goede Date: Sun, 2 Jul 2017 14:34:13 +0000 (+0200) Subject: HID: asus: Fix T100TA touchpad y dimensions X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=25cc2611a6d3f3f7c2ce4006fcc6c729a5ad8e14;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git HID: asus: Fix T100TA touchpad y dimensions 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 Signed-off-by: Jiri Kosina --- diff --git a/drivers/hid/hid-asus.c b/drivers/hid/hid-asus.c index b6d02ad980a3..b759485a2926 100644 --- a/drivers/hid/hid-asus.c +++ b/drivers/hid/hid-asus.c @@ -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, };