mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-16 22:39:48 +00:00
iio: st_pressure: Fix data sign
commit1b211d48abupstream. Datasheet of each device (lps331ap, lps25h, lps001wp, lps22hb) says that the pressure and temperature data is a 2's complement. I'm sending this the slow way, as negative pressures on these are pretty unusual and the nature of the fixing of multiple device introduction patches will make it hard to apply to older kernels - Jonathan. Fixes:217494e5b7("iio:pressure: Add STMicroelectronics pressures driver") Fixes:2f5effcbd0("iio: pressure-core: st: Expand and rename LPS331AP's channel descriptor") Fixes:7885a8ce68("iio: pressure: st: Add support for new LPS001WP pressure sensor") Fixes:e039e2f5b4("iio:st_pressure:initial lps22hb sensor support") Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
a1d51f7abf
commit
56251d1385
1 changed files with 5 additions and 5 deletions
Loading…
Add table
Add a link
Reference in a new issue