summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgavin <gavin@FreeBSD.org>2010-04-14 22:03:48 +0000
committergavin <gavin@FreeBSD.org>2010-04-14 22:03:48 +0000
commite2bd1cbb0ddd392b6fbcde0f81b44b59d52cece7 (patch)
tree17fae8fb3e8f0a11ec333982c5c01fd0eaf4ea39
parent58be1647f81d964462a1ca747976a7a85714fc0b (diff)
downloadFreeBSD-src-e2bd1cbb0ddd392b6fbcde0f81b44b59d52cece7.zip
FreeBSD-src-e2bd1cbb0ddd392b6fbcde0f81b44b59d52cece7.tar.gz
Use the UIPROTO_BOOT_KEYBOARD #define from usb.h rather than a local
(almost identically named) local #define. Reviewed by: hselasky
-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 8584f8d..f446db7 100644
--- a/sys/dev/usb/input/ukbd.c
+++ b/sys/dev/usb/input/ukbd.c
@@ -102,8 +102,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 */
@@ -770,7 +768,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