iio: chemical: bme680: refactorize set_mode() mode
authorVasileios Amoiridis <vassilisamir@gmail.com>
Sat, 2 Nov 2024 13:13:05 +0000 (14:13 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 3 Nov 2024 20:33:45 +0000 (20:33 +0000)
commit4865ee12c8d82e154f0eec28f2592a1248037ab1
tree7c38496c5be901873434f5601a35291289719af6
parent01f567d22152dfa8799e9fde5f18bbb5650d8681
iio: chemical: bme680: refactorize set_mode() mode

Refactorize the set_mode() function to use an external enum that
describes the possible modes of the BME680 device instead of using
true/false variables for selecting SLEEPING/FORCED mode.

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