summaryrefslogtreecommitdiffstats
path: root/drivers/iio/humidity
diff options
context:
space:
mode:
authorGregor Boirie2016-04-19 11:18:33 +0200
committerJonathan Cameron2016-05-29 16:48:54 +0200
commitd43a41152f8e9e4c0d19850884d1fada076dee10 (patch)
tree777f99636f04437df85119a9283020e382b4ca1f /drivers/iio/humidity
parentiio: proximity: as3935: fix buffer stack trashing (diff)
downloadkernel-qcow2-linux-d43a41152f8e9e4c0d19850884d1fada076dee10.tar.gz
kernel-qcow2-linux-d43a41152f8e9e4c0d19850884d1fada076dee10.tar.xz
kernel-qcow2-linux-d43a41152f8e9e4c0d19850884d1fada076dee10.zip
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>
Diffstat (limited to 'drivers/iio/humidity')
0 files changed, 0 insertions, 0 deletions