]> git.ipfire.org Git - thirdparty/linux.git/commit
iio: chemical: bme680: Fix pressure value output
authorVasileios Amoiridis <vassilisamir@gmail.com>
Thu, 6 Jun 2024 21:22:53 +0000 (23:22 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 9 Jun 2024 10:57:32 +0000 (11:57 +0100)
commitae1f7b93b52095be6776d0f34957b4f35dda44d9
tree1edac129fda612fd29f23ed994eb2c653e4cc374
parent9547d6a4c65e975e40e203900322342ef7379c52
iio: chemical: bme680: Fix pressure value output

The IIO standard units are measured in kPa while the driver
is using hPa.

Apart from checking the userspace value itself, it is mentioned also
in the Bosch API [1] that the pressure value is in Pascal.

[1]: https://github.com/boschsensortec/BME68x_SensorAPI/blob/v4.4.8/bme68x_defs.h#L742

Fixes: 1b3bd8592780 ("iio: chemical: Add support for Bosch BME680 sensor")
Signed-off-by: Vasileios Amoiridis <vassilisamir@gmail.com>
Link: https://lore.kernel.org/r/20240606212313.207550-2-vassilisamir@gmail.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/chemical/bme680_core.c