Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Apr 2010 22:03:49 +0000 (UTC)
From:      Gavin Atkinson <gavin@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r206638 - head/sys/dev/usb/input
Message-ID:  <201004142203.o3EM3n7T000447@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201004142203.o3EM3n7T000447>