summaryrefslogtreecommitdiff
path: root/include/linux/hid.h
diff options
context:
space:
mode:
authorBenjamin Tissoires <benjamin.tissoires@gmail.com>2011-09-21 16:56:54 +0200
committerJiri Kosina <jkosina@suse.cz>2011-09-26 14:18:18 +0200
commitb77c3920e90e96103e4f41442999402925fe5f73 (patch)
tree04df6c729a1e9b3afaa8e8f06b51fede1ef57779 /include/linux/hid.h
parenta062cc5a76fa1d12f0821e56e3746cad2dc2fc65 (diff)
downloadlinux-3.10-b77c3920e90e96103e4f41442999402925fe5f73.tar.gz
linux-3.10-b77c3920e90e96103e4f41442999402925fe5f73.tar.bz2
linux-3.10-b77c3920e90e96103e4f41442999402925fe5f73.zip
HID: add autodetection of multitouch devices
As mentioned by http://www.microsoft.com/whdc/device/input/DigitizerDrvs_touch.mspx multitouch devices are those that have the input report HID_CONTACTID. This patch detects this and unloads the generic-usb driver. Signed-off-by: Benjamin Tissoires <benjamin.tissoires@enac.fr> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'include/linux/hid.h')
-rw-r--r--include/linux/hid.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/hid.h b/include/linux/hid.h
index 9cf8e7ae745..6fb743d72bf 100644
--- a/include/linux/hid.h
+++ b/include/linux/hid.h
@@ -312,6 +312,7 @@ struct hid_item {
#define HID_QUIRK_BADPAD 0x00000020
#define HID_QUIRK_MULTI_INPUT 0x00000040
#define HID_QUIRK_HIDINPUT_FORCE 0x00000080
+#define HID_QUIRK_MULTITOUCH 0x00000100
#define HID_QUIRK_SKIP_OUTPUT_REPORTS 0x00010000
#define HID_QUIRK_FULLSPEED_INTERVAL 0x10000000
#define HID_QUIRK_NO_INIT_REPORTS 0x20000000