]> git.baikalelectronics.ru Git - kernel.git/commit
iio: hudmidity: hdc100x: fix incorrect shifting and scaling
authorMatt Ranostay <mranostay@gmail.com>
Mon, 30 May 2016 02:52:02 +0000 (19:52 -0700)
committerJonathan Cameron <jic23@kernel.org>
Fri, 3 Jun 2016 12:25:33 +0000 (13:25 +0100)
commitaa877a12904f5e773ccba886e34167e3c5b3e351
tree214790b811c6b2d18b4b557d83d64ae32756a76e
parenta409d001c5cf41c1e2ff498cf2f83e469b49eeec
iio: hudmidity: hdc100x: fix incorrect shifting and scaling

Shifting sensor data to the right 2 bits was incorrect and caused the
scaling values + offsets to be invalid.

Reported-by: Alison Schofield <amsfield22@gmail.com>
Signed-off-by: Matt Ranostay <mranostay@gmail.com>
Tested-by: Alison Schofield <amsfield22@gmail.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/humidity/hdc100x.c