]> git.baikalelectronics.ru Git - kernel.git/commit
HID: asus: Cleanup Asus T101HA keyboard-dock handling
authorHans de Goede <hdegoede@redhat.com>
Wed, 5 May 2021 21:39:34 +0000 (23:39 +0200)
committerJiri Kosina <jkosina@suse.cz>
Thu, 27 May 2021 13:40:35 +0000 (15:40 +0200)
commit87e1083d00c8579e2c7cdfbcd1210900b21d1fad
tree8e89c1e2dfba378c55a9e5c6734de62de277229d
parent847a9b017c84e524871a8cfc188b3e6248126a14
HID: asus: Cleanup Asus T101HA keyboard-dock handling

There is no need to use a quirk and then return -ENODEV from the
asus_probe() function to avoid that hid-asus binds to the hiddev
for the USB-interface for the hid-multitouch touchpad.

The hid-multitouch hiddev has a group of HID_GROUP_MULTITOUCH_WIN_8,
so the same result can be achieved by making the hid_device_id entry
for the dock in the asus_devices[] table only match on HID_GROUP_GENERIC
instead of having it match HID_GROUP_ANY.

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