diff options
author | joe <joe@FreeBSD.org> | 2002-01-02 18:28:45 +0000 |
---|---|---|
committer | joe <joe@FreeBSD.org> | 2002-01-02 18:28:45 +0000 |
commit | cff14677d4168b96a21fef5ec1f1a19ae1572eb2 (patch) | |
tree | 73a1b42d48a7391ee1d021784f4b2fe6d53da6e7 /sys/dev/usb/ukbd.c | |
parent | cec7ec547befb842623ced03b548a9157a372ecf (diff) | |
download | FreeBSD-src-cff14677d4168b96a21fef5ec1f1a19ae1572eb2.zip FreeBSD-src-cff14677d4168b96a21fef5ec1f1a19ae1572eb2.tar.gz |
Sync with NetBSD:
date: 2000/02/29 21:37:01; author: augustss; state: Exp;
Distinguish between device and interface classes.
(I finally found a document that said that they were different.)
Diffstat (limited to 'sys/dev/usb/ukbd.c')
-rw-r--r-- | sys/dev/usb/ukbd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/ukbd.c b/sys/dev/usb/ukbd.c index 6d3aa4e..bc5265b 100644 --- a/sys/dev/usb/ukbd.c +++ b/sys/dev/usb/ukbd.c @@ -1345,8 +1345,8 @@ probe_keyboard(struct usb_attach_arg *uaa, int flags) /* Check that this is a keyboard that speaks the boot protocol. */ id = usbd_get_interface_descriptor(uaa->iface); if (id - && id->bInterfaceClass == UCLASS_HID - && id->bInterfaceSubClass == USUBCLASS_BOOT + && id->bInterfaceClass == UICLASS_HID + && id->bInterfaceSubClass == UISUBCLASS_BOOT && id->bInterfaceProtocol == UPROTO_BOOT_KEYBOARD) return 0; /* found it */ |