Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iio: pressure: bmp280: fix relative humidity unit
[ Upstream commit 13399ff ] 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: Tomasz Duszynski <[email protected]> Fixes: 14beaa8 ("iio: pressure: bmp280: add humidity support") Acked-by: Matt Ranostay <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]> Signed-off-by: Sasha Levin <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information