Use proper signed types. The ADT746x uses signed 8-bit numbers for the
temperature. MFC after: 2 weeks
This commit is contained in:
parent
81d8de5f75
commit
59bb84753c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user