]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: buffer-dma: Use lockdep for locking annotations
authorNuno Sá <nuno.sa@analog.com>
Fri, 19 Dec 2025 15:28:12 +0000 (15:28 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 21 Dec 2025 11:54:39 +0000 (11:54 +0000)
commit09ccc1b65ca6bb61d05f163e063b98d89d4d7d06
tree43622bc69960a2d93ca27d48b76e4a0feab7e011
parent0a272aaf5fc110a34f4a5aeb61db4b6d105c62e9
iio: buffer-dma: Use lockdep for locking annotations

Don't use mutex_is_locked() + WARN_ON() for checking if a specif lock is
taken. Instead use the existing annotations which means
lockdep_assert_held().

Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/buffer/industrialio-buffer-dma.c