HID: asus: Add report_size to struct asus_touchpad_info
authorHans de Goede <hdegoede@redhat.com>
Tue, 28 Apr 2020 14:22:52 +0000 (16:22 +0200)
committerJiri Kosina <jkosina@suse.cz>
Wed, 6 May 2020 09:40:03 +0000 (11:40 +0200)
commita61f9e428bf092349fdfebeee37ddefedd3f0fd1
treedb5e93289262234b680baae9c7bbb23112943d52
parent4bc43a421218b6cebc7c926fea001b166ea3677c
HID: asus: Add report_size to struct asus_touchpad_info

Add the report_size to struct asus_touchpad_info instead of calculating it.

This is a preparation patch for adding support for the multi-touch touchpad
found on the Medion Akoya E1239T's keyboard-dock, which uses the same
custom multi-touch protocol as the Asus keyboard-docks (same chipset
vendor, Integrated Technology Express / ITE).

The only difference in that the Akoya E1239T keyboard-dock's input-reports
have a 5 byte footer instead of a 1 byte footer, which requires the
report_size to be configurable per touchpad-model.

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