Skip to content
Commit 94bef000 authored by Matt Ranostay's avatar Matt Ranostay Committed by Jonathan Cameron
Browse files

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: default avatarAlison Schofield <amsfield22@gmail.com>
Signed-off-by: default avatarMatt Ranostay <mranostay@gmail.com>
Tested-by: default avatarAlison Schofield <amsfield22@gmail.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 590b92a3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment