Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Correct setting of bits in the "generic thermisto...



details:   https://anonhg.NetBSD.org/src/rev/11f2ce61b148
branches:  trunk
changeset: 751947:11f2ce61b148
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Tue Feb 09 13:59:01 2010 +0000

description:
Correct setting of bits in the "generic thermistor" mode.  Cut&paste
error pointed out by njoly@

diffstat:

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

diffs (27 lines):

diff -r dd3799c37d96 -r 11f2ce61b148 sys/dev/ic/nslm7x.c
--- a/sys/dev/ic/nslm7x.c       Tue Feb 09 08:31:34 2010 +0000
+++ b/sys/dev/ic/nslm7x.c       Tue Feb 09 13:59:01 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nslm7x.c,v 1.51 2010/02/08 23:10:35 pgoyette Exp $ */
+/*     $NetBSD: nslm7x.c,v 1.52 2010/02/09 13:59:01 pgoyette Exp $ */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nslm7x.c,v 1.51 2010/02/08 23:10:35 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nslm7x.c,v 1.52 2010/02/09 13:59:01 pgoyette Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1795,7 +1795,7 @@
            case 4:     /* Switch to generic thermistor mode */
                lm_generic_banksel(sc, WB_BANKSEL_B0);
                regval = (*sc->lm_readreg)(sc, WB_BANK0_VBAT);
-               regval |= 0xe;
+               regval &= ~0xe;
                (*sc->lm_writereg)(sc, WB_BANK0_VBAT, regval);
                lm_generic_banksel(sc, banksel);
                aprint_verbose_dev(sc->sc_dev, "Thermistor temp sensors\n");



Home | Main Index | Thread Index | Old Index