aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorAkinobu Mita <[email protected]>2016-01-20 16:07:31 +0000
committerJonathan Cameron <[email protected]>2016-01-30 16:07:32 +0000
commit431386e783a3a6c8b7707bee32d18c353b8688b2 (patch)
treef1443db133e55388affeb9f50754e9c74b77af3c /fs/btrfs/dev-replace.c
parentiio: inkern: fix a NULL dereference on error (diff)
downloadkernel-431386e783a3a6c8b7707bee32d18c353b8688b2.tar.gz
kernel-431386e783a3a6c8b7707bee32d18c353b8688b2.zip
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 <[email protected]> Acked-by: Peter Meerwald-Stadler <[email protected]> Cc: <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions