diff options
author | Matt Ranostay <mranostay@gmail.com> | 2016-05-29 19:52:02 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-07-27 09:47:36 -0700 |
commit | 784108d9df5aea1d58d2a56900efaa8149507964 (patch) | |
tree | 558c8b08f2591571e54bd94f42351751e7381f7a /drivers/iio/light/lm3533-als.c | |
parent | d2be6f6172de75b807b48ef391fb7542402f554e (diff) |
iio: hudmidity: hdc100x: fix incorrect shifting and scaling
commit 94bef000f1d4aa111f4ddda1482cf3b30ad069ce upstream.
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>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/iio/light/lm3533-als.c')
0 files changed, 0 insertions, 0 deletions