diff options
author | jhibbits <jhibbits@FreeBSD.org> | 2015-01-18 07:08:06 +0000 |
---|---|---|
committer | jhibbits <jhibbits@FreeBSD.org> | 2015-01-18 07:08:06 +0000 |
commit | 321cf042b71e1ab9f6b03804e48643ef341a6fcf (patch) | |
tree | 6a900d88f3cd272348bac3665304b0501128379a | |
parent | fda5902fff11d209e05ade8932f6e3a1703f8f26 (diff) | |
download | FreeBSD-src-321cf042b71e1ab9f6b03804e48643ef341a6fcf.zip FreeBSD-src-321cf042b71e1ab9f6b03804e48643ef341a6fcf.tar.gz |
Use proper signed types. The ADT746x uses signed 8-bit numbers for the
temperature.
MFC after: 2 weeks
-rw-r--r-- | sys/dev/iicbus/adt746x.c | 5 |
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) { |