Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/i2c set ADM1026_ADDRMASK as 0x2f, not 0x3f8.
details: https://anonhg.NetBSD.org/src/rev/1a6ba13ef0fb
branches: trunk
changeset: 1004114:1a6ba13ef0fb
user: mrg <mrg%NetBSD.org@localhost>
date: Sun Oct 13 07:44:51 2019 +0000
description:
set ADM1026_ADDRMASK as 0x2f, not 0x3f8.
GCC-8 complained about always false condition, which indicated
the bug. patch from jdc@.
diffstat:
sys/dev/i2c/adm1026reg.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (15 lines):
diff -r 3c1442d7aa98 -r 1a6ba13ef0fb sys/dev/i2c/adm1026reg.h
--- a/sys/dev/i2c/adm1026reg.h Sun Oct 13 07:42:57 2019 +0000
+++ b/sys/dev/i2c/adm1026reg.h Sun Oct 13 07:44:51 2019 +0000
@@ -37,9 +37,9 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: adm1026reg.h,v 1.1 2015/12/16 07:56:48 jdc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: adm1026reg.h,v 1.2 2019/10/13 07:44:51 mrg Exp $");
-#define ADM1026_ADDRMASK 0x3f8
+#define ADM1026_ADDRMASK 0x2f /* 010 11xx */
#define ADM1026_ADDR 0x2c
#define ADM1026_CONF1 0x00
Home |
Main Index |
Thread Index |
Old Index