iio: pressure: bmp280: fix relative humidity unit
authorTomasz Duszynski <tduszyns@gmail.com>
Mon, 28 May 2018 15:38:59 +0000 (17:38 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 24 Jun 2018 13:22:35 +0000 (14:22 +0100)
commit13399ff25f179811ce9c1df1523eb39f9e4a4772
treef53428fe215038822f3578c62cd56c0d219ea5a3
parentce397d215ccd07b8ae3f71db689aedb85d56ab40
iio: pressure: bmp280: fix relative humidity unit

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 <tduszyns@gmail.com>
Fixes: 14beaa8f5ab1 ("iio: pressure: bmp280: add humidity support")
Acked-by: Matt Ranostay <matt.ranostay@konsulko.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/pressure/bmp280-core.c