summaryrefslogtreecommitdiff
path: root/sys/dev/isa
diff options
context:
space:
mode:
authorAlexander Yurchenko <grange@cvs.openbsd.org>2004-02-10 20:01:41 +0000
committerAlexander Yurchenko <grange@cvs.openbsd.org>2004-02-10 20:01:41 +0000
commit197e7efa7e99f522d8b6e6421f1b041e4aaf9044 (patch)
tree006da7e813f7f6c36a6fe01c5f7edf933d85eb22 /sys/dev/isa
parent5844e7bf0c6891c17a7151066f53a340f803ce57 (diff)
Use SENSOR_FINVALID.
Diffstat (limited to 'sys/dev/isa')
-rw-r--r--sys/dev/isa/it.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/isa/it.c b/sys/dev/isa/it.c
index d128c80f8d8..0109826004a 100644
--- a/sys/dev/isa/it.c
+++ b/sys/dev/isa/it.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: it.c,v 1.7 2004/02/02 20:14:26 grange Exp $ */
+/* $OpenBSD: it.c,v 1.8 2004/02/10 20:01:40 grange Exp $ */
/*
* Copyright (c) 2003 Julien Bordet <zejames@greyhats.org>
@@ -313,7 +313,9 @@ it_generic_fanrpm(struct it_softc *sc, struct sensor *sensors)
break;
}
- if (sdata == 0xff || sdata == 0) {
+ if (sdata == 0xff) {
+ sensors[i].flags |= SENSOR_FINVALID;
+ } else if (sdata == 0) {
sensors[i].value = 0;
} else {
sensors[i].value = 1350000 / (sdata << divisor);