Use the UIPROTO_BOOT_KEYBOARD #define from usb.h rather than a local

(almost identically named) local #define.

Reviewed by:	hselasky
This commit is contained in:
Gavin Atkinson 2010-04-14 22:03:48 +00:00
parent 57d848483e
commit 2d8d6ee437
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=206638

View File

@ -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