summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorAkinobu Mita <akinobu.mita@gmail.com>2016-01-21 01:07:31 +0900
committerSasha Levin <sasha.levin@oracle.com>2016-04-11 22:07:36 -0400
commit17fe8c8b306e4b76078b8b103e1f344970409378 (patch)
tree7dd51315dbfe402f2950913e7a245516a26fa486 /drivers/usb
parent5b20b25abab6faba0c91a4d7ccde93e134f29d6d (diff)
iio: pressure: mpl115: fix temperature offset sign
[ Upstream commit 431386e783a3a6c8b7707bee32d18c353b8688b2 ] 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> Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Diffstat (limited to 'drivers/usb')
0 files changed, 0 insertions, 0 deletions