Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/zaurus/dev use APM_BATT_FLAG_CHARGING.
details: https://anonhg.NetBSD.org/src/rev/c6f8fc2f4d0c
branches: trunk
changeset: 749896:c6f8fc2f4d0c
user: nonaka <nonaka%NetBSD.org@localhost>
date: Sat Dec 12 11:38:45 2009 +0000
description:
use APM_BATT_FLAG_CHARGING.
diffstat:
sys/arch/zaurus/dev/zapm.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r e13165f2fe3a -r c6f8fc2f4d0c sys/arch/zaurus/dev/zapm.c
--- a/sys/arch/zaurus/dev/zapm.c Sat Dec 12 11:35:16 2009 +0000
+++ b/sys/arch/zaurus/dev/zapm.c Sat Dec 12 11:38:45 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: zapm.c,v 1.6 2009/04/03 04:13:17 uwe Exp $ */
+/* $NetBSD: zapm.c,v 1.7 2009/12/12 11:38:45 nonaka Exp $ */
/* $OpenBSD: zaurus_apm.c,v 1.13 2006/12/12 23:14:28 dim Exp $ */
/*
@@ -18,7 +18,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: zapm.c,v 1.6 2009/04/03 04:13:17 uwe Exp $");
+__KERNEL_RCSID(0, "$NetBSD: zapm.c,v 1.7 2009/12/12 11:38:45 nonaka Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -809,7 +809,7 @@
zapm_set_charging(sc, 0);
}
} else if (!charge_completed) {
- charging = 1;
+ charging = APM_BATT_FLAG_CHARGING;
volt = zapm_get_battery_volt();
zapm_set_charging(sc, 1);
DPRINTF(("zapm_poll: start charging volt %d\n", volt));
Home |
Main Index |
Thread Index |
Old Index