diff options
author | Daniel Mack <daniel@caiaq.de> | 2010-07-12 19:28:27 +0200 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2010-07-19 11:54:16 +0200 |
commit | 3a343ee4509c982552b35fbc99d3213f3bb1acde (patch) | |
tree | a65aace9df737363bf437d8cef0cf9c9b7267121 /drivers/hid | |
parent | fc99f22c5de2177431cada350417ac6e353380c7 (diff) | |
download | op-kernel-dev-3a343ee4509c982552b35fbc99d3213f3bb1acde.zip op-kernel-dev-3a343ee4509c982552b35fbc99d3213f3bb1acde.tar.gz |
HID: add HID_QUIRK_HIDINPUT_FORCE
For devices with exotic HID report descriptors, it might be necessary to
make the HID core force the registration of an input device. Make that
possible by introducing a new quirk type.
Signed-off-by: Daniel Mack <daniel@caiaq.de>
Cc: Jiri Kosina <jkosina@suse.cz>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid')
-rw-r--r-- | drivers/hid/hid-core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index 866e54e..7ccee89 100644 --- a/drivers/hid/hid-core.c +++ b/drivers/hid/hid-core.c @@ -1157,6 +1157,8 @@ int hid_connect(struct hid_device *hdev, unsigned int connect_mask) if (hdev->quirks & HID_QUIRK_HIDDEV_FORCE) connect_mask |= (HID_CONNECT_HIDDEV_FORCE | HID_CONNECT_HIDDEV); + if (hdev->quirks & HID_QUIRK_HIDINPUT_FORCE) + connect_mask |= HID_CONNECT_HIDINPUT_FORCE; if (hdev->bus != BUS_USB) connect_mask &= ~HID_CONNECT_HIDDEV; if (hid_hiddev(hdev)) |