OpenCloudOS-Kernel/drivers/iio
Gregor Boirie d43a41152f iio:st_pressure: fix sampling gains (bring inline with ABI)
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>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2016-05-29 15:48:54 +01:00
..
accel 2nd set of new device support, features and cleanup for IIO in the 4.7 cycle. 2016-04-26 15:07:23 -07:00
adc 2nd set of new device support, features and cleanup for IIO in the 4.7 cycle. 2016-04-26 15:07:23 -07:00
amplifiers spi: Updates for v4.4 2015-11-05 13:15:12 -08:00
buffer iio: buffer-dmaengine: Use dmaengine_terminate_sync() 2016-02-09 21:05:17 +00:00
chemical iio: convert to common i2c_check_functionality() return value 2016-02-27 17:17:43 +00:00
common iio: st_sensors: support open drain mode 2016-04-19 19:58:13 +01:00
dac iio: dac: ad5592r: Off by one bug in ad5592r_alloc_channels() 2016-05-04 10:52:43 +01:00
dummy Second set of IIO new drivers, functionality and cleanups for the 4.5 cycle. 2015-12-26 17:03:33 -08:00
frequency iio: frequency: ad9523: use unsigned int rather then bare unsigned 2016-04-17 10:31:03 +01:00
gyro 2nd set of new device support, features and cleanup for IIO in the 4.7 cycle. 2016-04-26 15:07:23 -07:00
health iio: health: max30100: correct FIFO check condition 2016-03-28 10:09:58 +01:00
humidity iio: humidity: am2315: Remove a stray unlock 2016-05-21 17:47:14 +01:00
imu iio: bmi160: Fix ODR setting 2016-05-04 10:50:36 +01:00
light max44000: Remove scale from proximity 2016-05-21 20:21:17 +01:00
magnetometer 2nd set of new device support, features and cleanup for IIO in the 4.7 cycle. 2016-04-26 15:07:23 -07:00
orientation iio: orientation: hid-sensor-rotation: Fix memory leak in probe() 2015-05-17 09:10:25 +01:00
potentiometer iio: potentiometer: add driver for Maxim Integrated DS1803 2016-04-10 12:34:09 +01:00
pressure iio:st_pressure: fix sampling gains (bring inline with ABI) 2016-05-29 15:48:54 +01:00
proximity iio: proximity: as3935: fix buffer stack trashing 2016-05-22 20:54:15 +01:00
temperature iio: convert to common i2c_check_functionality() return value 2016-02-27 17:17:43 +00:00
trigger iio: trigger: Introduce IIO hrtimer based trigger 2015-12-03 18:19:27 +00:00
Kconfig iio: light: add MAX30100 oximeter driver support 2015-12-12 12:14:37 +00:00
Makefile iio: light: add MAX30100 oximeter driver support 2015-12-12 12:14:37 +00:00
iio_core.h iio: Move buffer registration to the core 2014-12-12 12:28:31 +00:00
iio_core_trigger.h
industrialio-buffer.c iio: fix config watermark initial value 2016-03-28 11:00:38 +01:00
industrialio-configfs.c iio:configfs: Introduce iio/configfs.h to provide a location for the configfs_subsystem 2015-12-05 16:25:30 +00:00
industrialio-core.c iio:core: mounting matrix support 2016-04-23 22:13:05 +01:00
industrialio-event.c iio: event: Remove negative error code from iio_event_poll 2015-08-12 19:26:39 +01:00
industrialio-sw-trigger.c iio: core: fix ptr_ret.cocci warnings 2016-01-20 17:09:18 -08:00
industrialio-trigger.c iio: Support triggered events 2015-08-27 20:47:09 +01:00
industrialio-triggered-event.c iio: Support triggered events 2015-08-27 20:47:09 +01:00
inkern.c iio: core: Add devm_ APIs for iio_channel_{get,release}_all 2016-04-19 19:58:15 +01:00