Use proper signed types. The ADT746x uses signed 8-bit numbers for the

temperature.

MFC after:	2 weeks
This commit is contained in:
Justin Hibbits 2015-01-18 07:08:06 +00:00
parent 81d8de5f75
commit 59bb84753c

View File

@ -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) {