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: NAlison Schofield <amsfield22@gmail.com> Signed-off-by: NMatt Ranostay <mranostay@gmail.com> Tested-by: NAlison Schofield <amsfield22@gmail.com> Cc: <Stable@vger.kernel.org> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
Showing
想要评论请 注册 或 登录