Re: [PATCH] staging: iio: frequency: ad9832: use guard(mutex) for locking
From: Greg Kroah-Hartman
Date: Sat Apr 11 2026 - 04:54:37 EST
On Sat, Apr 11, 2026 at 12:55:04PM +0530, Advaith Neelacantan wrote:
> Replace mutex lock/unlock pairs with
>
> guard(mutex) for automatic scope-based locking.
>
> Simplifies code by removing need to manually unlock.
Only use guard() for new code, no need to change existing code for that
at all.
thanks,
greg k-h