]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iio: pressure: bmp280: Add SCALE, RAW values in channels and refactorize them
authorVasileios Amoiridis <vassilisamir@gmail.com>
Fri, 28 Jun 2024 17:17:25 +0000 (19:17 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 3 Aug 2024 09:13:36 +0000 (10:13 +0100)
commit479e67ac648009b992c4651f5ad0d6dc5b201e4e
tree29157f230398333a08d82f63ce31184972182e93
parent74353ceb3533ff1bcef1645cdab549d1a7dfaa22
iio: pressure: bmp280: Add SCALE, RAW values in channels and refactorize them

Add extra IIO_CHAN_INFO_SCALE and IIO_CHAN_INFO_RAW channels in order
to be able to calculate the processed value with standard userspace
IIO tools. Can be used for triggered buffers as well.

Even though it is not a good design choice to have SCALE, RAW and
PROCESSED together, the PROCESSED channel is kept for ABI compatibility.

While at it, separate BMPxxx and BMExxx device channels since BME
supports also humidity measurements.

Signed-off-by: Vasileios Amoiridis <vassilisamir@gmail.com>
Link: https://lore.kernel.org/r/20240512230524.53990-5-vassilisamir@gmail.com
Link: https://patch.msgid.link/20240628171726.124852-3-vassilisamir@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/pressure/bmp280-core.c