svn commit: r277314 - head/sys/dev/iicbus
Justin Hibbits
jhibbits at FreeBSD.org
Sun Jan 18 07:08:08 UTC 2015
Author: jhibbits
Date: Sun Jan 18 07:08:06 2015
New Revision: 277314
URL: https://svnweb.freebsd.org/changeset/base/277314
Log:
Use proper signed types. The ADT746x uses signed 8-bit numbers for the
temperature.
MFC after: 2 weeks
Modified:
head/sys/dev/iicbus/adt746x.c
Modified: head/sys/dev/iicbus/adt746x.c
==============================================================================
--- head/sys/dev/iicbus/adt746x.c Sun Jan 18 06:43:09 2015 (r277313)
+++ head/sys/dev/iicbus/adt746x.c Sun Jan 18 07:08:06 2015 (r277314)
@@ -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) {
More information about the svn-src-head
mailing list