]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: health: max30102: Use IIO cleanup helpers
authorKurt Borja <kuurtb@gmail.com>
Tue, 20 Jan 2026 06:20:46 +0000 (01:20 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 22 Jan 2026 20:53:17 +0000 (20:53 +0000)
commit421ac0c231cd66bd8cd7fea6a7b79a59ea2f7f1a
treef68dd9e6e7a9cec2c1846c8574494d1f7b03ac20
parent6a3fe0fc9e623352ccf65650cb31c4309f853d1d
iio: health: max30102: Use IIO cleanup helpers

Use IIO_DEV_GUARD_CURRENT_MODE() cleanup helper to simplify and drop
busy-waiting code in max30102_read_raw().

Reviewed-by: David Lechner <dlechner@baylibre.com>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Signed-off-by: Kurt Borja <kuurtb@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/health/max30102.c