Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b4164f8c authored by Tomasz Duszynski's avatar Tomasz Duszynski Committed by Greg Kroah-Hartman
Browse files

iio: pressure: bmp280: fix relative humidity unit



[ Upstream commit 13399ff25f179811ce9c1df1523eb39f9e4a4772 ]

According to IIO ABI relative humidity reading should be
returned in milli percent.

This patch addresses that by applying proper scaling and
returning integer instead of fractional format type specifier.

Note that the fixes tag is before the driver was heavily refactored
to introduce spi support, so the patch won't apply that far back.

Signed-off-by: default avatarTomasz Duszynski <tduszyns@gmail.com>
Fixes: 14beaa8f ("iio: pressure: bmp280: add humidity support")
Acked-by: default avatarMatt Ranostay <matt.ranostay@konsulko.com>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: default avatarSasha Levin <alexander.levin@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6c500d00
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment