iio: chemical: scd4x: Add pressure compensation
authorRoan van Dijk <roan@protonic.nl>
Tue, 11 Jul 2023 10:14:19 +0000 (12:14 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 20 Jul 2023 18:21:30 +0000 (19:21 +0100)
commit3f3caf5b2ea683cc2baf7ce27908f0faf896dac8
tree302d1a5e7aed3a5f085217ab80e2930d1fac4d84
parent4dc8f99dab753955348414dc854259c57120bf1b
iio: chemical: scd4x: Add pressure compensation

This patch adds pressure compensation to the scd4x driver. The pressure can
be written to the sensor in hPa. The pressure will be compensated
internally by the sensor.

Signed-off-by: Roan van Dijk <roan@protonic.nl>
Link: https://lore.kernel.org/r/20230711101419.2065107-1-roan@protonic.nl
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/chemical/scd4x.c