]> git.baikalelectronics.ru Git - kernel.git/commit
iio: Fix two mpl3115 issues in measurement conversion
authorPeter Meerwald <pmeerw@pmeerw.net>
Tue, 20 May 2014 07:36:00 +0000 (08:36 +0100)
committerJonathan Cameron <jic23@kernel.org>
Thu, 29 May 2014 16:38:36 +0000 (17:38 +0100)
commit45a07932db7cd77ca7df352985e65042609345d9
tree6b6e700008a5aaa52462ef69757c0888bd07dcd9
parent169d6afbe4a42319499ee02bd9479a3f17636611
iio: Fix two mpl3115 issues in measurement conversion

(i) pressure is 20-bit unsigned, not signed; the buffer description
is incorrect; for raw reads, this is just cosmetic

(ii) temperature is 12-bit signed, not 16-bit; this affects
readout of temperatures below zero as the sign bit is incorrectly
processed

reported via private mail

Cc: stable@vger.kernel.org
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Reported-by: Robert Deliƫn <robert@delien.nl>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/pressure/mpl3115.c