Module Name: src Committed By: macallan Date: Sun Jul 12 06:42:33 UTC 2020
Modified Files: src/sys/dev/i2c: dbcool.c Log Message: in sysctl_dbcool_behavior() - actually use the array index when translating text from sysctl -w *.behavior=<whatever> now this actually works on my sb2500's two adm1030s To generate a diff of this commit: cvs rdiff -u -r1.55 -r1.56 src/sys/dev/i2c/dbcool.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/dbcool.c diff -u src/sys/dev/i2c/dbcool.c:1.55 src/sys/dev/i2c/dbcool.c:1.56 --- src/sys/dev/i2c/dbcool.c:1.55 Sun Jul 12 06:38:56 2020 +++ src/sys/dev/i2c/dbcool.c Sun Jul 12 06:42:32 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: dbcool.c,v 1.55 2020/07/12 06:38:56 macallan Exp $ */ +/* $NetBSD: dbcool.c,v 1.56 2020/07/12 06:42:32 macallan Exp $ */ /*- * Copyright (c) 2008 The NetBSD Foundation, Inc. @@ -50,7 +50,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: dbcool.c,v 1.55 2020/07/12 06:38:56 macallan Exp $"); +__KERNEL_RCSID(0, "$NetBSD: dbcool.c,v 1.56 2020/07/12 06:42:32 macallan Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -1314,7 +1314,7 @@ sysctl_dbcool_behavior(SYSCTLFN_ARGS) break; if (i >= __arraycount(behavior)) return EINVAL; - + newreg = i; if (sc->sc_dc.dc_chip->flags & DBCFLAG_ADM1030) { /* * ADM1030 splits fan controller behavior across two