Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic Fix a bug that fan RPM wasn't printed correctly. ...



details:   https://anonhg.NetBSD.org/src/rev/a846bc3c4f8e
branches:  trunk
changeset: 825530:a846bc3c4f8e
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Thu Jul 20 02:24:31 2017 +0000

description:
Fix a bug that fan RPM wasn't printed correctly. 0xbX is not RPM but counter.
Use 0xcX.

diffstat:

 sys/dev/ic/nslm7x.c |  18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diffs (81 lines):

diff -r 37ed6669e960 -r a846bc3c4f8e sys/dev/ic/nslm7x.c
--- a/sys/dev/ic/nslm7x.c       Thu Jul 20 01:54:50 2017 +0000
+++ b/sys/dev/ic/nslm7x.c       Thu Jul 20 02:24:31 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nslm7x.c,v 1.65 2017/07/11 10:10:51 msaitoh Exp $ */
+/*     $NetBSD: nslm7x.c,v 1.66 2017/07/20 02:24:31 msaitoh Exp $ */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nslm7x.c,v 1.65 2017/07/11 10:10:51 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nslm7x.c,v 1.66 2017/07/20 02:24:31 msaitoh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -94,7 +94,7 @@
 static void wb_refresh_fanrpm(struct lm_softc *, int);
 static void wb_w83792d_refresh_fanrpm(struct lm_softc *, int);
 static void wb_nct6776f_refresh_fanrpm(struct lm_softc *, int);
-static const char * wm_nct67xx_id2str(uint8_t);
+static const char * wb_nct67xx_id2str(uint8_t);
 
 static void as_refresh_temp(struct lm_softc *, int);
 
@@ -1963,7 +1963,7 @@
                .desc = "System Fan",
                .type = ENVSYS_SFANRPM,
                .bank = 4,
-               .reg = 0xb0,
+               .reg = 0xc0,
                .refresh = wb_nct6776f_refresh_fanrpm,
                .rfact = 0
        },
@@ -1971,7 +1971,7 @@
                .desc = "CPU Fan",
                .type = ENVSYS_SFANRPM,
                .bank = 4,
-               .reg = 0xb2,
+               .reg = 0xc2,
                .refresh = wb_nct6776f_refresh_fanrpm,
                .rfact = 0
        },
@@ -1979,7 +1979,7 @@
                .desc = "Aux Fan0",
                .type = ENVSYS_SFANRPM,
                .bank = 4,
-               .reg = 0xb4,
+               .reg = 0xc4,
                .refresh = wb_nct6776f_refresh_fanrpm,
                .rfact = 0
        },
@@ -1987,7 +1987,7 @@
                .desc = "Aux Fan1",
                .type = ENVSYS_SFANRPM,
                .bank = 4,
-               .reg = 0xb6,
+               .reg = 0xc6,
                .refresh = wb_nct6776f_refresh_fanrpm,
                .rfact = 0
        },
@@ -1995,7 +1995,7 @@
                .desc = "Aux Fan2",
                .type = ENVSYS_SFANRPM,
                .bank = 4,
-               .reg = 0xb8,
+               .reg = 0xc8,
                .refresh = wb_nct6776f_refresh_fanrpm,
                .rfact = 0
        },
@@ -2251,7 +2251,7 @@
                wb_temp_diode_type(sc, cf_flags);
                break;
        case WB_CHIPID_W83627DHG:
-               model = wm_nct67xx_id2str(sc->sioid);
+               model = wb_nct67xx_id2str(sc->sioid);
                if (model != NULL) {
                        vendor = "Nuvoton";
                        switch (sc->sioid) {



Home | Main Index | Thread Index | Old Index