Module Name: src
Committed By: uwe
Date: Fri Apr 3 04:25:40 UTC 2009
Modified Files:
src/sys/dev/apm: apm.c
Log Message:
Treat OAPM_IOC_GETPOWER as APM_IOC_GETPOWER - from apmdev(4).
To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sys/dev/apm/apm.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/apm/apm.c
diff -u src/sys/dev/apm/apm.c:1.22 src/sys/dev/apm/apm.c:1.23
--- src/sys/dev/apm/apm.c:1.22 Thu Jun 12 21:47:46 2008
+++ src/sys/dev/apm/apm.c Fri Apr 3 04:25:40 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: apm.c,v 1.22 2008/06/12 21:47:46 cegger Exp $ */
+/* $NetBSD: apm.c,v 1.23 2009/04/03 04:25:40 uwe Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: apm.c,v 1.22 2008/06/12 21:47:46 cegger Exp $");
+__KERNEL_RCSID(0, "$NetBSD: apm.c,v 1.23 2009/04/03 04:25:40 uwe Exp $");
#include "opt_apm.h"
@@ -835,6 +835,7 @@
}
break;
+ case OAPM_IOC_GETPOWER:
case APM_IOC_GETPOWER:
powerp = (struct apm_power_info *)data;
if ((error = (*sc->sc_ops->aa_get_powstat)(sc->sc_cookie, 0,