]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: core: Add and export __iio_dev_mode_lock()
authorKurt Borja <kuurtb@gmail.com>
Tue, 20 Jan 2026 06:20:41 +0000 (01:20 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 22 Jan 2026 20:53:17 +0000 (20:53 +0000)
commit88fd1f90792411226f49e5f285bf3faca5ac970b
treecb039342e247e5a668977395dc125ba489c26f18
parent4296b1fb54d65906911e677a0eb33471c626e799
iio: core: Add and export __iio_dev_mode_lock()

Add unconditional wrappers around the internal IIO mode lock.

As mentioned in the documentation, this is not meant to be used by
drivers, instead this will aid in the eventual addition of cleanup
classes around conditional locks.

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/industrialio-core.c
include/linux/iio/iio.h