summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2010-05-17 23:43:07 +0000
committerthompsa <thompsa@FreeBSD.org>2010-05-17 23:43:07 +0000
commit637bbf075a30225cf002adda9576e402846754db (patch)
tree2c281bbf9ee16be5f618bee8f631f02bb850c689
parent48424cca91e940844a40d1a1663c36349a3ad0e1 (diff)
downloadFreeBSD-src-637bbf075a30225cf002adda9576e402846754db.zip
FreeBSD-src-637bbf075a30225cf002adda9576e402846754db.tar.gz
MFC r206638
Use the UIPROTO_BOOT_KEYBOARD #define from usb.h rather than a local (almost identically named) local #define.
-rw-r--r--sys/dev/usb/input/ukbd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/usb/input/ukbd.c b/sys/dev/usb/input/ukbd.c
index 4aad840..64c17ce 100644
--- a/sys/dev/usb/input/ukbd.c
+++ b/sys/dev/usb/input/ukbd.c
@@ -109,8 +109,6 @@ TUNABLE_INT("hw.usb.ukbd.debug", &ukbd_debug);
TUNABLE_INT("hw.usb.ukbd.no_leds", &ukbd_no_leds);
#endif
-#define UPROTO_BOOT_KEYBOARD 1
-
#define UKBD_EMULATE_ATSCANCODE 1
#define UKBD_DRIVER_NAME "ukbd"
#define UKBD_NMOD 8 /* units */
@@ -777,7 +775,7 @@ ukbd_probe(device_t dev)
return (ENXIO);
if ((uaa->info.bInterfaceSubClass == UISUBCLASS_BOOT) &&
- (uaa->info.bInterfaceProtocol == UPROTO_BOOT_KEYBOARD)) {
+ (uaa->info.bInterfaceProtocol == UIPROTO_BOOT_KEYBOARD)) {
if (usb_test_quirk(uaa, UQ_KBD_IGNORE))
return (ENXIO);
else
OpenPOWER on IntegriCloud