]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
HID: elan: Query device max_x and max_y value from touchpad
authorHans de Goede <hdegoede@redhat.com>
Wed, 11 Jul 2018 10:38:33 +0000 (12:38 +0200)
committerJiri Kosina <jkosina@suse.cz>
Tue, 17 Jul 2018 13:25:39 +0000 (15:25 +0200)
commit79d11f2a2070613b63a620e4a8b87feb3e5543c3
treef0a040da854680bb1014a13dfaf0cf42a367f65f
parent314f04e85cabf0027f098866897db57fdaf6cf19
HID: elan: Query device max_x and max_y value from touchpad

Query the device's max_x and max_y value from the touchpad rather then
hardcoding it. This makes adding support for other USB ids a lot easier.

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