Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Dec 2011 14:13:21 +0000 (UTC)
From:      Justin Hibbits <jhibbits@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r228277 - in head: etc/devd sys/powerpc/powermac
Message-ID:  <201112051413.pB5EDLr0040468@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhibbits
Date: Mon Dec  5 14:13:21 2011
New Revision: 228277
URL: http://svn.freebsd.org/changeset/base/228277

Log:
  Fix style(9) issues from r228270.
  
  Approved by:	nwhitehorn (mentor)

Modified:
  head/etc/devd/apple.conf
  head/sys/powerpc/powermac/pmu.c

Modified: head/etc/devd/apple.conf
==============================================================================
--- head/etc/devd/apple.conf	Mon Dec  5 12:06:53 2011	(r228276)
+++ head/etc/devd/apple.conf	Mon Dec  5 14:13:21 2011	(r228277)
@@ -11,7 +11,7 @@ notify 0 {
 };
 
 
-# Keyboard power key
+# PowerBook and iBook lid close.
 notify 0 {
 	match "system"		"PMU";
 	match "subsystem"	"lid";

Modified: head/sys/powerpc/powermac/pmu.c
==============================================================================
--- head/sys/powerpc/powermac/pmu.c	Mon Dec  5 12:06:53 2011	(r228276)
+++ head/sys/powerpc/powermac/pmu.c	Mon Dec  5 14:13:21 2011	(r228277)
@@ -702,14 +702,14 @@ pmu_intr(void *arg)
 			len - 3,&resp[3]);
 	}
 	if (resp[1] & PMU_INT_ENVIRONMENT) {
-		// if the lid was just closed, notify devd.
+		/* if the lid was just closed, notify devd. */
 		if ((resp[2] & PMU_ENV_LID_CLOSED) && (!sc->lid_closed)) {
 			sc->lid_closed = 1;
 			if (devctl_process_running())
 				devctl_notify("PMU", "lid", "close", NULL);
 		}
 		else if (!(resp[2] & PMU_ENV_LID_CLOSED) && (sc->lid_closed)) {
-			// if the lid was just opened, notify devd.
+			/* if the lid was just opened, notify devd. */
 			if (devctl_process_running())
 				devctl_notify("PMU", "lid", "open", NULL);
 			sc->lid_closed = 0;



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