Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Nov 2008 17:33:36 +0000 (UTC)
From:      Nathan Whitehorn <nwhitehorn@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r184890 - head/sys/dev/adb
Message-ID:  <200811121733.mACHXaUq036326@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nwhitehorn
Date: Wed Nov 12 17:33:36 2008
New Revision: 184890
URL: http://svn.freebsd.org/changeset/base/184890

Log:
  Probe ADB miscellaneous devices (ID 7) instead of stopping at ID 6. This
  allows us to probe the brightness and volume control buttons on PPC Apple
  laptops, though there is not yet a driver to do anything useful with them.

Modified:
  head/sys/dev/adb/adb_bus.c

Modified: head/sys/dev/adb/adb_bus.c
==============================================================================
--- head/sys/dev/adb/adb_bus.c	Wed Nov 12 15:49:11 2008	(r184889)
+++ head/sys/dev/adb/adb_bus.c	Wed Nov 12 17:33:36 2008	(r184890)
@@ -134,7 +134,7 @@ adb_bus_enumerate(void *xdev)
 	/* Enumerate bus */
 	next_free = 8;
 
-	for (i = 1; i < 7; i++) {
+	for (i = 1; i <= 7; i++) {
 	    int8_t first_relocated = -1;
 	    int reply = 0;
 



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