Re: [PATCH] staging: iio: frequency: ad9832: use guard(mutex) for locking

Greg Kroah-Hartman
2026-04-11T08:54:23Z

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