Re: [PATCH v4 4/7] iio: core: Add cleanup.h support for iio_device_claim_*()

From: Andy Shevchenko

Date: Mon Jan 19 2026 - 03:15:41 EST


On Sun, Jan 18, 2026 at 10:44:31AM -0500, Kurt Borja wrote:
> Add guard classes for iio_device_claim_*() conditional locks. This will
> aid drivers write safer and cleaner code when dealing with some common
> patterns.
>
> These classes are not meant to be used directly by drivers (hence the
> __priv__ prefix). Instead, documented wrapper macros are provided to
> enforce the use of ACQUIRE() or guard() semantics and avoid the
> problematic scoped guard.

Acked-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxx>

--
With Best Regards,
Andy Shevchenko