Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/i2c Use semantically-correct "_lo" in AXP_ADC_RAW ma...
details: https://anonhg.NetBSD.org/src/rev/88b2c7d49863
branches: trunk
changeset: 994563:88b2c7d49863
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Tue Nov 13 18:27:32 2018 +0000
description:
Use semantically-correct "_lo" in AXP_ADC_RAW macro.
diffstat:
sys/dev/i2c/axppmic.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r c262ead73481 -r 88b2c7d49863 sys/dev/i2c/axppmic.c
--- a/sys/dev/i2c/axppmic.c Tue Nov 13 17:22:04 2018 +0000
+++ b/sys/dev/i2c/axppmic.c Tue Nov 13 18:27:32 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: axppmic.c,v 1.14 2018/06/26 06:03:57 thorpej Exp $ */
+/* $NetBSD: axppmic.c,v 1.15 2018/11/13 18:27:32 jakllsch Exp $ */
/*-
* Copyright (c) 2014-2018 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: axppmic.c,v 1.14 2018/06/26 06:03:57 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: axppmic.c,v 1.15 2018/11/13 18:27:32 jakllsch Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -74,7 +74,7 @@
#define AXP_BATTDISCHG_LO_REG 0x7d
#define AXP_ADC_RAW(_hi, _lo) \
- (((u_int)(_hi) << 4) | ((lo) & 0xf))
+ (((u_int)(_hi) << 4) | ((_lo) & 0xf))
#define AXP_FUEL_GAUGE_CTRL_REG 0xb8
#define AXP_FUEL_GAUGE_CTRL_EN __BIT(7)
Home |
Main Index |
Thread Index |
Old Index