summaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-ntrig.c
diff options
context:
space:
mode:
authorJindrich Makovicka <makovick@gmail.com>2010-06-03 12:50:42 +0200
committerJiri Kosina <jkosina@suse.cz>2010-06-04 11:19:02 +0200
commite5a2a04c264e693eafcc78fec5add34c9e15e471 (patch)
treeb1f2c82237aee7a2790b40d104261ab967e2fb4e /drivers/hid/hid-ntrig.c
parentfdd45ef44cfe84037f44ab386915b55c32a58bf7 (diff)
downloadop-kernel-dev-e5a2a04c264e693eafcc78fec5add34c9e15e471.zip
op-kernel-dev-e5a2a04c264e693eafcc78fec5add34c9e15e471.tar.gz
HID: check for HID_QUIRK_IGNORE during probing
While the hardcoded ignore list is checked in hid_add_device(), the user supplied ignore flags are not. Thus, the IGNORE quirk (0x0004) cannot be used to stop usbhid from binding devices like iBuddy, which has been recently removed from the ignore list due to product ID conflict. This patch adds the user quirk check to hid_add_device(), and makes hid_add_device() return -ENODEV when HID_QUIRK_IGNORE bit is set. HID_QUIRK_NO_IGNORE still takes precedence over HID_QUIRK_IGNORE. With the patch, iBuddy works properly using libusb when the following option is added to modprobe.d: options usbhid quirks=0x1130:0x0002:0x0004 Signed-off-by: Jindrich Makovicka <makovick@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-ntrig.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud