mirror of https://gitee.com/openkylin/linux.git
431386e783
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> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
bmp280.c | ||
hid-sensor-press.c | ||
mpl115.c | ||
mpl3115.c | ||
ms5611.h | ||
ms5611_core.c | ||
ms5611_i2c.c | ||
ms5611_spi.c | ||
ms5637.c | ||
st_pressure.h | ||
st_pressure_buffer.c | ||
st_pressure_core.c | ||
st_pressure_i2c.c | ||
st_pressure_spi.c | ||
t5403.c |