diff options
| author | 2026-06-10 10:23:37 -0300 | |
|---|---|---|
| committer | 2026-06-29 19:05:37 +0100 | |
| commit | f0b9af38653ae748efc073ee0036b4d34ab99d6b (patch) | |
| tree | ead9c02c4224ad89c11a7f15704b340d56547357 /scripts/Makefile.thinlto | |
| parent | iio: pressure: hid-sensor-press: use u32 instead of unsigned (diff) | |
iio: frequency: adf4377: replace mutex_lock/unlock with guard(mutex)()
Replace manual mutex_lock()/mutex_unlock() calls with guard(mutex)() from
cleanup.h.
Using guard(mutex)() from cleanup.h allows the compiler to enforce lock
release on every exit path, eliminating the error-prone manual lock/unlock
pattern and the goto-based exit labels that existed in adf4377_get_freq()
and adf4377_set_freq(). This reduces the chance of lock imbalance bugs.
Signed-off-by: Eduardo Guedes <educg550@usp.br>
Co-developed-by: Lucca Ciriac <luccaciriac@usp.br>
Signed-off-by: Lucca Ciriac <luccaciriac@usp.br>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
