diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2008-03-12 20:20:36 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2008-03-12 20:20:36 +0000 |
| commit | 4c134f3e801548185ff51f18d024aa180495b4ed (patch) | |
| tree | a059712bd93de62c92ff4ee81dc0cfca5da2909c /sys/dev | |
| parent | 810df801813705f2a5effa4e64cfe10f50e559e8 (diff) | |
Notes
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/usb/ums.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/usb/ums.c b/sys/dev/usb/ums.c index 875539b6c688..73bb120b22d1 100644 --- a/sys/dev/usb/ums.c +++ b/sys/dev/usb/ums.c @@ -198,7 +198,10 @@ ums_match(device_t self) if (err) return (UMATCH_NONE); - if (id->bInterfaceClass == UICLASS_HID && + if (hid_is_collection(desc, size, + HID_USAGE2(HUP_GENERIC_DESKTOP, HUG_MOUSE))) + ret = UMATCH_IFACECLASS; + else if (id->bInterfaceClass == UICLASS_HID && id->bInterfaceSubClass == UISUBCLASS_BOOT && id->bInterfaceProtocol == UIPROTO_MOUSE) ret = UMATCH_IFACECLASS; |
