summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2006-06-19 14:33:11 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2006-06-19 14:33:11 +0000
commit5a10c1a1b5cde406eabf667f57a61c102084516f (patch)
treead7793e4f65d4e260a0acd0e975462e39dda39d2
parent5676d98c388296ef9172f0f13246bbc2a602736f (diff)
Avoid using the rfact member of 'struct sensor' which is on its way out.
-rw-r--r--sys/dev/i2c/w83l784r.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/i2c/w83l784r.c b/sys/dev/i2c/w83l784r.c
index a873a71d7c2..a0ee0b5f900 100644
--- a/sys/dev/i2c/w83l784r.c
+++ b/sys/dev/i2c/w83l784r.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: w83l784r.c,v 1.7 2006/05/14 12:40:23 kettenis Exp $ */
+/* $OpenBSD: w83l784r.c,v 1.8 2006/06/19 14:33:10 kettenis Exp $ */
/*
* Copyright (c) 2006 Mark Kettenis
@@ -271,7 +271,7 @@ w83l784r_refresh_volt(struct wbenv_softc *sc, int n)
data = wbenv_readreg(sc, reg);
sensor->value = (data << 4); /* 16 mV LSB */
- sensor->value *= sensor->rfact;
+ sensor->value *= sc->sc_wbenv_sensors[n].rfact;
sensor->value /= 10;
}
@@ -283,7 +283,7 @@ w83l785r_refresh_volt(struct wbenv_softc *sc, int n)
data = wbenv_readreg(sc, reg);
sensor->value = (data << 3); /* 8 mV LSB */
- sensor->value *= sensor->rfact;
+ sensor->value *= sc->sc_wbenv_sensors[n].rfact;
sensor->value /= 10;
}