summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/fdt/axppmic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/fdt/axppmic.c b/sys/dev/fdt/axppmic.c
index fa672648237..218d8c29e0d 100644
--- a/sys/dev/fdt/axppmic.c
+++ b/sys/dev/fdt/axppmic.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: axppmic.c,v 1.7 2019/08/11 14:38:20 kettenis Exp $ */
+/* $OpenBSD: axppmic.c,v 1.8 2019/08/12 20:06:02 kettenis Exp $ */
/*
* Copyright (c) 2017 Mark Kettenis <kettenis@openbsd.org>
*
@@ -724,7 +724,7 @@ axppmic_update_sensors(void *arg)
axppmic_update_percent(sc, i);
break;
case SENSOR_AMPHOUR:
- axppmic_update_amphour(sc, 1);
+ axppmic_update_amphour(sc, i);
break;
default:
axppmic_update_sensor(sc, i);