iio: chemical: scd4x: Add a scale for the co2 concentration reading
authorRoan van Dijk <roan@protonic.nl>
Thu, 21 Oct 2021 14:00:18 +0000 (16:00 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 21 Oct 2021 19:53:11 +0000 (20:53 +0100)
commite46e2512ac84bd914212dc4b639d596db543f5b1
tree6ce37605305834f9820fc7ae931cc8bfa41a14d3
parent392998a8032a59bff4ec14dc9d5098c60b50baf9
iio: chemical: scd4x: Add a scale for the co2 concentration reading

This patch adds a scale for the co2 concentration reading. The reading is
expressed in percent after applying the scale to the raw value.

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