summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2006-04-14 15:48:42 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2006-04-14 15:48:42 +0000
commit33e9add957bdd56451697ea5581bf5361f8b1b30 (patch)
treea49b7bf47899560b15e07738665ed601abf748ad /sys/dev
parentf4faeca6dc27c0236080cdaf33e47ff1112b2498 (diff)
fix +12v conversion, because of stupid C; wilfried
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/i2c/adt7460.c4
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: