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)
commit94bef000f1d4aa111f4ddda1482cf3b30ad069ce
tree214790b811c6b2d18b4b557d83d64ae32756a76e
parent590b92a30242dd3f73de3d9a51d9924f1ab33e93
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