summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorGregor Boirie <gregor.boirie@parrot.com>2016-04-19 11:18:33 +0200
committerSasha Levin <alexander.levin@verizon.com>2016-08-19 23:08:41 -0400
commitf247adf96f98a21b130a5844435a36f917c2a98a (patch)
tree9075854e0960d9fce5d7b9550b390088f580be35 /Documentation
parent3bdfc8b57f57425b6fc6d1bca4accfbb72d755f8 (diff)
iio:st_pressure: fix sampling gains (bring inline with ABI)
[ Upstream commit d43a41152f8e9e4c0d19850884d1fada076dee10 ] 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> Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions