Date: Sun, 18 Jan 2015 07:08:07 +0000 (UTC) From: Justin Hibbits <jhibbits@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r277314 - head/sys/dev/iicbus Message-ID: <201501180708.t0I787OL048063@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201501180708.t0I787OL048063>