Correct an error introduced in rev 1.3; if there are no sensors of a

given type, this is indicated by "low" > "high" in the envsys_range
struct - the comments (and revision 1.2 of this file) indicate there are
no sensors of type ENVSYS_SVOLTS_AC, so fix viaenv_ranges[] to agree
with this.
This commit is contained in:
riz 2006-07-29 21:03:24 +00:00
parent a1291ab337
commit 184df1b6fd
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: viaenv.c,v 1.14 2006/06/07 22:33:37 kardel Exp $ */
/* $NetBSD: viaenv.c,v 1.15 2006/07/29 21:03:24 riz Exp $ */
/*
* Copyright (c) 2000 Johan Danielsson
@ -35,7 +35,7 @@
/* driver for the hardware monitoring part of the VIA VT82C686A */
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: viaenv.c,v 1.14 2006/06/07 22:33:37 kardel Exp $");
__KERNEL_RCSID(0, "$NetBSD: viaenv.c,v 1.15 2006/07/29 21:03:24 riz Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -81,7 +81,7 @@ struct viaenv_softc {
static const struct envsys_range viaenv_ranges[] = {
{ 0, 2, ENVSYS_STEMP },
{ 3, 4, ENVSYS_SFANRPM },
{ 0, 1, ENVSYS_SVOLTS_AC }, /* none */
{ 1, 0, ENVSYS_SVOLTS_AC }, /* none */
{ 5, 11, ENVSYS_SVOLTS_DC },
{ 1, 0, ENVSYS_SOHMS }, /* none */
{ 1, 0, ENVSYS_SWATTS }, /* none */