OSDN Git Service

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)
commita94f66aecdaa498d83314cadac466d8b65674b94
tree8e89c1e2dfba378c55a9e5c6734de62de277229d
parent4b4f6cecca446abcb686c6e6c451d4f1ec1a7497
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