svn commit: r206638 - head/sys/dev/usb/input
Gavin Atkinson
gavin at FreeBSD.org
Wed Apr 14 22:03:49 UTC 2010
Author: gavin
Date: Wed Apr 14 22:03:48 2010
New Revision: 206638
URL: http://svn.freebsd.org/changeset/base/206638
Log:
Use the UIPROTO_BOOT_KEYBOARD #define from usb.h rather than a local
(almost identically named) local #define.
Reviewed by: hselasky
Modified:
head/sys/dev/usb/input/ukbd.c
Modified: head/sys/dev/usb/input/ukbd.c
==============================================================================
--- head/sys/dev/usb/input/ukbd.c Wed Apr 14 22:02:19 2010 (r206637)
+++ head/sys/dev/usb/input/ukbd.c Wed Apr 14 22:03:48 2010 (r206638)
@@ -102,8 +102,6 @@ TUNABLE_INT("hw.usb.ukbd.debug", &ukbd_d
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
More information about the svn-src-head
mailing list