]> git.baikalelectronics.ru Git - kernel.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)
commitbbc1078e58cd8982187fe45d5fa8b928dccd2f7d
treef0a040da854680bb1014a13dfaf0cf42a367f65f
parent9affc3c0a035fd426a20c01b170852c096e0b55f
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