Fix style(9) issues from r228270.

Approved by:	nwhitehorn (mentor)
This commit is contained in:
Justin Hibbits 2011-12-05 14:13:21 +00:00
parent 506cc70cce
commit 23ab37cb82
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=228277
2 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ notify 0 {
};
# Keyboard power key
# PowerBook and iBook lid close.
notify 0 {
match "system" "PMU";
match "subsystem" "lid";

View File

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