]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: chemical: bme680: Remove duplicate register read
authorVasileios Amoiridis <vassilisamir@gmail.com>
Sun, 9 Jun 2024 23:38:17 +0000 (01:38 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 3 Aug 2024 09:13:34 +0000 (10:13 +0100)
commit5a387668972d0172bb4e044a313b0a36a041b149
treea0bb5a4ce97c9ac36282dc78c1b05f71b561f802
parent4d879ba0a662f5e39c82c1c6b42a26b90798e358
iio: chemical: bme680: Remove duplicate register read

The LSB of the gas register was read first to check if the following
check was correct and then the MSB+LSB were read together. Simplify this
by reading together the MSB+LSB immediately.

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