]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: light: opt4060: Use IIO cleanup helpers
authorKurt Borja <kuurtb@gmail.com>
Tue, 20 Jan 2026 06:20:47 +0000 (01:20 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 22 Jan 2026 20:53:17 +0000 (20:53 +0000)
commit8284a498541623414abc616450371b08f24a4aac
tree94aae802692bb16b2600bb7d7d01a9fc12cde632
parent421ac0c231cd66bd8cd7fea6a7b79a59ea2f7f1a
iio: light: opt4060: Use IIO cleanup helpers

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

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/light/opt4060.c