summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2019-08-12 20:06:03 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2019-08-12 20:06:03 +0000
commit7eec424752ba0222f149d9801a3f3cafdd94be5e (patch)
tree323de6d5a672050287624ce41e57b336a0376b07 /sys/dev
parent491c066576436eb5aa3a09fa1489eca135ac4fe2 (diff)
Fix typo; spotted by Krystian Lewandowski.
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);