summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSoeren Sonnenburg2007-02-05 10:06:01 +0100
committerJiri Kosina2007-02-05 10:06:01 +0100
commita417a21e10831bca695b4ba9c74f4ddf5a95ac06 (patch)
treef28e78098fea57ed62d6d12f34a87dbb6737bf6c /include
parentHID: move away from DEBUG defines in favor of CONFIG_HID_DEBUG (diff)
downloadkernel-qcow2-linux-a417a21e10831bca695b4ba9c74f4ddf5a95ac06.tar.gz
kernel-qcow2-linux-a417a21e10831bca695b4ba9c74f4ddf5a95ac06.tar.xz
kernel-qcow2-linux-a417a21e10831bca695b4ba9c74f4ddf5a95ac06.zip
USB HID: handle multi-interface devices for Apple macbook pro properly
Some HID devices by Apple have both keyboard and mouse interfaces; the keyboard interface is handled by usbhid, but the mouse (really touchpad) interface must be handled by the separate 'appletouch' driver. Using HID_QUIRK_IGNORE will make hiddev ignore both interfaces, therefore a new quirk flag to ignore only the mouse interface is required. Signed-off-by: Soeren Sonnenburg <kernel@nn7.de> Signed-off-by: Sergey Vlasov <vsu@altlinux.ru> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'include')
-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 829690d8071e..93173fe45634 100644
--- a/include/linux/hid.h
+++ b/include/linux/hid.h
@@ -265,6 +265,7 @@ struct hid_item {
#define HID_QUIRK_POWERBOOK_ISO_KEYBOARD 0x00008000
#define HID_QUIRK_BAD_RELATIVE_KEYS 0x00010000
#define HID_QUIRK_SKIP_OUTPUT_REPORTS 0x00020000
+#define HID_QUIRK_IGNORE_MOUSE 0x00040000
/*
* This is the global environment of the parser. This information is