linux/drivers/iio/pressure
Gregor Boirie 923f209551 iio:st_pressure: fix sampling gains (bring inline with ABI)
commit d43a41152f upstream.

Temperature channels report scaled samples in Celsius although expected as
milli degree Celsius in Documentation/ABI/testing/sysfs-bus-iio.
Gains are not implemented at all for LPS001WP pressure and temperature
channels.

This patch ensures that proper offsets and scales are exposed to userpace
for both pressure and temperature channels.
Also fix a NULL pointer exception when userspace reads content of sysfs
scale attribute when gains are not defined.

Signed-off-by: Gregor Boirie <gregor.boirie@parrot.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2016-07-27 09:47:36 -07: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-02-25 12:01:17 -08:00
mpl3115.c iio: Fix two mpl3115 issues in measurement conversion 2014-05-29 17:38:36 +01:00
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_pressure: fix sampling gains (bring inline with ABI) 2016-07-27 09:47:36 -07: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 iio: Add t5403 barometric pressure sensor driver 2014-06-14 13:15:30 +01:00