]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 Mar 2023 15:43:48 +0000 (16:43 +0100)
commita7f5cc2168904ffffb05b47d1c19a9ccdccb704d
treef4564b38c741f3dbcaf620b97c45d4e35b7ee193
parent2f914afc35532505e328dbd33f35e19343a8add3
HID: asus: Add report_size to struct asus_touchpad_info

[ Upstream commit 82b171e1375921677695b21380767a8bce277745 ]

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>
Stable-dep-of: 4ab3a086d10e ("HID: asus: use spinlock to safely schedule workers")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hid/hid-asus.c