Module Name: src
Committed By: mrg
Date: Sun Oct 13 07:44:51 UTC 2019
Modified Files:
src/sys/dev/i2c: adm1026reg.h
Log Message:
set ADM1026_ADDRMASK as 0x2f, not 0x3f8.
GCC-8 complained about always false condition, which indicated
the bug. patch from jdc@.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/dev/i2c/adm1026reg.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/i2c/adm1026reg.h
diff -u src/sys/dev/i2c/adm1026reg.h:1.1 src/sys/dev/i2c/adm1026reg.h:1.2
--- src/sys/dev/i2c/adm1026reg.h:1.1 Wed Dec 16 07:56:48 2015
+++ src/sys/dev/i2c/adm1026reg.h Sun Oct 13 07:44:51 2019
@@ -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