summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/iicbus/adt746x.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/iicbus/adt746x.c b/sys/dev/iicbus/adt746x.c
index 42974e7..35cbc3e 100644
--- a/sys/dev/iicbus/adt746x.c
+++ b/sys/dev/iicbus/adt746x.c
@@ -539,9 +539,10 @@ static int
adt746x_sensor_read(struct adt746x_sensor *sens)
{
struct adt746x_softc *sc;
- uint16_t tmp = 0;
+ int tmp = 0;
uint16_t val;
- uint8_t temp, data[1], data1[1];
+ uint8_t data[1], data1[1];
+ int8_t temp;
sc = device_get_softc(sens->dev);
if (sens->type != ADT746X_SENSOR_SPEED) {
OpenPOWER on IntegriCloud