diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-04-14 15:48:42 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-04-14 15:48:42 +0000 |
commit | 33e9add957bdd56451697ea5581bf5361f8b1b30 (patch) | |
tree | a49b7bf47899560b15e07738665ed601abf748ad /sys/dev | |
parent | f4faeca6dc27c0236080cdaf33e47ff1112b2498 (diff) |
fix +12v conversion, because of stupid C; wilfried
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/i2c/adt7460.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/i2c/adt7460.c b/sys/dev/i2c/adt7460.c index 1b74d03514a..618d821c570 100644 --- a/sys/dev/i2c/adt7460.c +++ b/sys/dev/i2c/adt7460.c @@ -1,4 +1,4 @@ -/* $OpenBSD: adt7460.c,v 1.11 2006/04/13 05:30:24 deraadt Exp $ */ +/* $OpenBSD: adt7460.c,v 1.12 2006/04/14 15:48:41 deraadt Exp $ */ /* * Copyright (c) 2005 Mark Kettenis @@ -283,7 +283,7 @@ adt_refresh(void *arg) case ADT_VCCP: case ADT_V5: case ADT_V12: - sc->sc_sensor[i].value = ratio * 1000 * data / 192; + sc->sc_sensor[i].value = ratio * 1000 * (u_int)data / 192; break; case ADT_LOCAL_TEMP: case ADT_REM1_TEMP: |