linux/drivers/iio
Akinobu Mita 17fe8c8b30 iio: pressure: mpl115: fix temperature offset sign
[ Upstream commit 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>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
History 2016-04-11 22:07:36 -04:00
..
accel iio: st_accel: fix interrupt handling on LIS3LV02 2015-11-09 14:33:35 -08:00
adc iio: adc: at91_adc: allow to use full range of startup time 2015-08-03 09:29:02 -07:00
amplifiers iio: amplifiers: ad8366: Use right order for type specification 2015-01-01 12:16:57 +00:00
common hid-sensor: Fix suspend/resume delay 2015-08-03 09:28:59 -07:00
dac iio: dac: mcp4725: set iio name property in sysfs 2016-04-11 22:07:36 -04:00
frequency iio: frequency: ad9523: Increase sleep time in ad9523_store_eeprom 2015-01-01 12:18:26 +00:00
gyro iio: bmg160: IIO_BUFFER and IIO_TRIGGERED_BUFFER are required 2015-09-21 10:05:27 -07:00
humidity IIO: si7020: Allocate correct amount of memory in devm_iio_device_alloc 2015-02-14 11:35:12 +00:00
imu iio: adis_buffer: Fix out-of-bounds memory access 2016-04-11 22:07:36 -04:00
light iio: light: tcs3414: Fix bug preventing to set integration time 2015-08-03 09:29:01 -07:00
magnetometer The usual mixed bag of fixes for IIO in the 4.1 cycle. 2015-05-13 11:51:14 -07:00
orientation Merge branch 'for-4.1/sensor-hub' into for-linus 2015-04-13 23:43:34 +02:00
pressure iio: pressure: mpl115: fix temperature offset sign 2016-04-11 22:07:36 -04:00
proximity iio: proximity: sx9500: Fix proximity value 2015-08-03 09:29:02 -07:00
temperature iio: tmp006: Check channel info on write 2015-08-03 09:29:02 -07:00
trigger iio: trigger: Add a blank line after declarations 2014-12-26 12:15:36 +00:00
buffer_cb.c iio get rid of unneccessary error_ret 2014-02-18 08:46:36 +00:00
iio_core.h iio: Move buffer registration to the core 2014-12-12 12:28:31 +00:00
iio_core_trigger.h iio: fix semicolon in io_core_trigger.h 2013-08-03 18:40:32 +01:00
industrialio-buffer.c iio: industrialio-buffer: Fix iio_buffer_poll return value 2015-09-21 10:05:27 -07:00
industrialio-core.c iio: core: Fix double free. 2015-03-14 18:54:14 +00:00
industrialio-event.c iio: event: Remove negative error code from iio_event_poll 2015-09-21 10:05:27 -07:00
industrialio-trigger.c iio: Remove timestamp argument from iio_trigger_poll() and iio_trigger_poll_chained() 2014-06-14 16:25:59 +01:00
industrialio-triggered-buffer.c iio: kfifo: Remove unused argument in iio_kfifo_allocate 2014-12-26 11:20:38 +00:00
inkern.c First round of IIO new drivers, cleanups and functionality for the 3.20 cycle take 2 2015-01-21 10:13:37 +08:00
Kconfig Merge branch 'kconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild 2015-02-19 10:36:45 -08:00
kfifo_buf.c iio: kfifo: Set update_needed to false only if a buffer was allocated 2015-05-07 23:36:58 +01:00
Makefile iio: Add AS3935 lightning sensor support 2014-03-16 18:00:32 +00:00