]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: core: Refactor iio_device_claim_direct() implementation
authorKurt Borja <kuurtb@gmail.com>
Tue, 20 Jan 2026 06:20:42 +0000 (01:20 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 22 Jan 2026 20:53:17 +0000 (20:53 +0000)
commitc37ec9d507966a827913f42e06179e3475a00181
treebe7993e0348a805f77e6fd018c11c6d6260dc0d6
parent88fd1f90792411226f49e5f285bf3faca5ac970b
iio: core: Refactor iio_device_claim_direct() implementation

In order to eventually unify the locking API, implement
iio_device_claim_direct() fully inline, with the use of
__iio_dev_mode_lock(), which takes care of sparse annotations.

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