diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2008-04-21 15:32:49 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2008-04-21 15:32:49 +0000 |
commit | 9e2bb10f17a60d553154ed7fc411883de584106a (patch) | |
tree | 87d7bc9bd5964541854b23d113ad1f5b73cf2f7b | |
parent | 2ddbeb9c54aa89352b7afb931181253d659933b0 (diff) |
correct negative temperatures (if they ever happen); spotted by cnst
-rw-r--r-- | sys/dev/i2c/adt7462.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/dev/i2c/adt7462.c b/sys/dev/i2c/adt7462.c index 913b82906fb..cfd1734d173 100644 --- a/sys/dev/i2c/adt7462.c +++ b/sys/dev/i2c/adt7462.c @@ -1,4 +1,4 @@ -/* $OpenBSD: adt7462.c,v 1.2 2008/04/21 06:13:35 deraadt Exp $ */ +/* $OpenBSD: adt7462.c,v 1.3 2008/04/21 15:32:48 deraadt Exp $ */ /* * Copyright (c) 2008 Theo de Raadt @@ -25,6 +25,12 @@ #define ADT7462_INT_TEMPL 0x88 #define ADT7462_INT_TEMPH 0x89 +#define ADT7462_INT_REM1L 0x8a +#define ADT7462_INT_REM1H 0x8b +#define ADT7462_INT_REM2L 0x8c +#define ADT7462_INT_REM2H 0x8d +#define ADT7462_INT_REM3L 0x8e +#define ADT7462_INT_REM3H 0x8f /* Sensors */ #define ADTFSM_INT 0 @@ -97,7 +103,7 @@ adtfsm_refresh(void *arg) { struct adtfsm_softc *sc = arg; u_int8_t cmdh, cmdl, datah = 0x01, datal = 0x02; - u_short t; + short t; iic_acquire_bus(sc->sc_tag, 0); |