summaryrefslogtreecommitdiff
path: root/drivers/hid/hid-generic.c
diff options
context:
space:
mode:
authorJiri Kosina <jkosina@suse.com>2024-11-18 22:02:17 +0100
committerJiri Kosina <jkosina@suse.com>2024-11-18 22:02:17 +0100
commit903796855b6152c479bae07dcebded77897f9e1c (patch)
tree66e8119c9a6b7af98009a2ef3ed18316c000df60 /drivers/hid/hid-generic.c
parentffca1be9b4b3a72cf0c2796413101ba425225f48 (diff)
parentb6d8c474e26517f944208e4645a2a09a6eeee88e (diff)
Merge branch 'for-6.13/bpf' into for-linus
- improvement of the way hid-bpf coexists with specific drivers (others than hid-generic) that are already bound to devices (Benjamin Tissoires)
Diffstat (limited to 'drivers/hid/hid-generic.c')
-rw-r--r--drivers/hid/hid-generic.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/hid/hid-generic.c b/drivers/hid/hid-generic.c
index d2439399fb35..9e04c6d0fcc8 100644
--- a/drivers/hid/hid-generic.c
+++ b/drivers/hid/hid-generic.c
@@ -40,6 +40,9 @@ static bool hid_generic_match(struct hid_device *hdev,
if (ignore_special_driver)
return true;
+ if (hdev->quirks & HID_QUIRK_IGNORE_SPECIAL_DRIVER)
+ return true;
+
if (hdev->quirks & HID_QUIRK_HAVE_SPECIAL_DRIVER)
return false;