]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
HID: hid-multitouch: Switch to device groups
authorHenrik Rydberg <rydberg@euromail.se>
Tue, 1 May 2012 06:40:01 +0000 (08:40 +0200)
committerJiri Kosina <jkosina@suse.cz>
Tue, 1 May 2012 10:54:55 +0000 (12:54 +0200)
commit4fa3a5837b8427faab9b064b1948795eb77b9f8d
tree4aaa5fffb375f0b44e5c0a44726948ac016f53bf
parent070748ed0b52399858a5967026a452bbb903a64c
HID: hid-multitouch: Switch to device groups

Switch the driver over to device group handling.  By adding the
HID_GROUP_MULTITOUCH group to hid-core, hid-generic will no longer
match multitouch devices.  By adding the HID_GROUP_MULTITOUCH entry to
the device list, hid-multitouch will match all unknown multitouch
devices, and udev will automatically load the module.

Since HID_QUIRK_MULTITOUCH never gets set, the special quirks handling
can be removed.  Since all HID MT devices have HID_DG_CONTACTID, they
can be removed from the hid_have_special_driver list.

With this patch, the unknown device ids are no longer NULL, so the code
is modified to check for the generic entry instead.

Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Acked-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-core.c
drivers/hid/hid-input.c
drivers/hid/hid-multitouch.c
include/linux/hid.h