linux/drivers/iio/pressure
Akinobu Mita 431386e783 iio: pressure: mpl115: fix temperature offset sign
According to the datasheet, the resolusion of temperature sensor is
-5.35 counts/C. Temperature ADC is 472 counts at 25C.
(https://www.sparkfun.com/datasheets/Sensors/Pressure/MPL115A1.pdf
NOTE: This is older revision, but this information is removed from the
latest datasheet from nxp somehow)

Temp [C] = (Tadc - 472) / -5.35 + 25
         = (Tadc - 605.750000) * -0.186915888

So the correct offset is -605.750000.

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Acked-by: Peter Meerwald-Stadler <pmeerw@pmeerw.net>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2016-01-30 16:07:32 +00:00
..
bmp280.c iio: pressure: bmp280: fix temp compensation 2015-04-09 12:54:10 +01:00
hid-sensor-press.c Second set of new driver, functionality and cleanups for IIO in the 4.2 cycle. 2015-05-24 11:45:21 -07:00
Kconfig Add ms8607 meas-spec driver support 2015-10-11 10:21:21 +01:00
Makefile Add ms5637 meas-spec driver support 2015-10-11 10:21:20 +01:00
mpl115.c iio: pressure: mpl115: fix temperature offset sign 2016-01-30 16:07:32 +00:00
mpl3115.c
ms5611.h iio: pressure: ms5611: add support for MS5607 temperature and pressure sensor 2015-07-05 14:34:00 +01:00
ms5611_core.c iio: pressure: ms5611: add support for MS5607 temperature and pressure sensor 2015-07-05 14:34:00 +01:00
ms5611_i2c.c iio: Drop owner assignment from i2c_driver 2015-07-11 18:50:07 +01:00
ms5611_spi.c spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00
ms5637.c Add ms8607 meas-spec driver support 2015-10-11 10:21:21 +01:00
st_pressure.h iio:pressure: Removed unnecessary parameter on common_probe function 2014-10-04 11:25:38 +01:00
st_pressure_buffer.c iio:pressure: Changed pressure data variable name to press_data 2014-10-04 11:26:09 +01:00
st_pressure_core.c iio: st_sensors: add debugfs register read hook 2015-08-16 10:51:25 +01:00
st_pressure_i2c.c iio: Drop owner assignment from i2c_driver 2015-07-11 18:50:07 +01:00
st_pressure_spi.c spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00
t5403.c