Re: [PATCH v6 3/5] iio: proximity: rfd77402: Use devm-managed mutex initialization
From: Andy Shevchenko
Date: Wed Jan 21 2026 - 04:32:35 EST
On Wed, Jan 21, 2026 at 02:05:43AM +0530, Shrikant Raskar via B4 Relay wrote:
> Use devm_mutex_init() to tie the mutex lifetime to the device and
> simplify resource lifetime management.
I believe it's currently more about debugging mutexes.
See how other commits in IIO look like
commit 6e43c10675d876a5fb71e57a9bcca9533fccccd9
Author: Nuno Sá <nuno.sa@xxxxxxxxxx>
Date: Tue Nov 4 15:35:13 2025 +0000
iio: dac: ad5446: Make use of devm_mutex_init()
Use devm_mutex_init() which is helpful with CONFIG_DEBUG_MUTEXES.
With the commit message being rewritten,
Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxx>
--
With Best Regards,
Andy Shevchenko