Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 291670
b: refs/heads/master
c: 6b1968d
h: refs/heads/master
v: v3
  • Loading branch information
Jiri Kosina committed Mar 9, 2012
1 parent 1d96438 commit 24892ea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a786e83cb088f1afcd1d55e44efd4b89d78c32d1
refs/heads/master: 6b1968d5b6e223237bca98879f31c5616b3b325f
8 changes: 6 additions & 2 deletions trunk/drivers/hid/hid-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Copyright (c) 1999 Andreas Gal
* Copyright (c) 2000-2005 Vojtech Pavlik <vojtech@suse.cz>
* Copyright (c) 2005 Michael Haboustak <mike-@cinci.rr.com> for Concept2, Inc
* Copyright (c) 2006-2010 Jiri Kosina
* Copyright (c) 2006-2012 Jiri Kosina
*/

/*
Expand Down Expand Up @@ -50,6 +50,10 @@ module_param_named(debug, hid_debug, int, 0600);
MODULE_PARM_DESC(debug, "toggle HID debugging messages");
EXPORT_SYMBOL_GPL(hid_debug);

static int hid_ignore_special_drivers = 0;
module_param_named(ignore_special_drivers, hid_ignore_special_drivers, int, 0600);
MODULE_PARM_DESC(debug, "Ignore any special drivers and handle all devices by generic driver");

/*
* Register a new report for a device.
*/
Expand Down Expand Up @@ -1678,7 +1682,7 @@ static int hid_bus_match(struct device *dev, struct device_driver *drv)
return 0;

/* generic wants all that don't have specialized driver */
if (!strncmp(hdrv->name, "generic-", 8))
if (!strncmp(hdrv->name, "generic-", 8) && !hid_ignore_special_drivers)
return !hid_match_id(hdev, hid_have_special_driver);

return 1;
Expand Down

0 comments on commit 24892ea

Please sign in to comment.