]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: chemical: bme680: generalize read_*() functions
authorVasileios Amoiridis <vassilisamir@gmail.com>
Mon, 21 Oct 2024 19:53:10 +0000 (21:53 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Fri, 1 Nov 2024 14:54:47 +0000 (14:54 +0000)
commit27f8b05b2ffe4df2e2e024aa203850800b55776f
tree57de80935cc67120ed6284512d0cc56cdd29e5ac
parent7adfc3484c03c8c79465bf5dc11bb5b1fca24da7
iio: chemical: bme680: generalize read_*() functions

Remove the IIO specific scaling measurement units from the read functions
and add them inside the ->read_raw() function to keep the read_*() generic.
This way they can be used in other parts of the driver.

Signed-off-by: Vasileios Amoiridis <vassilisamir@gmail.com>
Link: https://patch.msgid.link/20241021195316.58911-8-vassilisamir@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/chemical/bme680_core.c