Module Name:    src
Committed By:   macallan
Date:           Wed Sep 13 21:15:12 UTC 2017

Modified Files:
        src/sys/dev/i2c: adm1021.c

Log Message:
MAX6642 does not have lower limit registers


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/dev/i2c/adm1021.c

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/adm1021.c
diff -u src/sys/dev/i2c/adm1021.c:1.13 src/sys/dev/i2c/adm1021.c:1.14
--- src/sys/dev/i2c/adm1021.c:1.13	Fri Sep  1 20:11:59 2017
+++ src/sys/dev/i2c/adm1021.c	Wed Sep 13 21:15:11 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: adm1021.c,v 1.13 2017/09/01 20:11:59 macallan Exp $ */
+/*	$NetBSD: adm1021.c,v 1.14 2017/09/13 21:15:11 macallan Exp $ */
 /*	$OpenBSD: adm1021.c,v 1.27 2007/06/24 05:34:35 dlg Exp $	*/
 
 /*
@@ -27,7 +27,7 @@
  *   company/revision reg  X        X       X       X         X        X
  *   no negative temps     X        X       X       X 
  *   11-bit remote temp             X       X       X                  X
- *   no low limits                                       X
+ *   no low limits                                       X             X
  *   therm (high) limits                    X       X                  X
  *
  * Registers 0x00 to 0x0f have separate read/write addresses, but
@@ -38,7 +38,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: adm1021.c,v 1.13 2017/09/01 20:11:59 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: adm1021.c,v 1.14 2017/09/13 21:15:11 macallan Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -236,6 +236,7 @@ admtemp_setflags(struct admtemp_softc *s
 		}
 		if (strcmp("max6642", ia->ia_compat[i]) == 0) {
 			sc->sc_noneg = 0;
+			sc->sc_nolow = 1;
 			strlcpy(name, "MAX6642", ADMTEMP_NAMELEN);
 			return;
 		}
@@ -263,7 +264,7 @@ admtemp_setflags(struct admtemp_softc *s
 		 */
 		if (*comp == *rev) {		
 			sc->sc_therm = 0;	/* */
-			sc->sc_ext11 = 1;
+			sc->sc_nolow = 1;
 			strlcpy(name, "MAX6642", ADMTEMP_NAMELEN);
 		} else {
 			strlcpy(name, "MAX1617A", ADMTEMP_NAMELEN);

Reply via email to