Re: [PATCH v4 4/7] iio: core: Add cleanup.h support for iio_device_claim_*()
From: Kurt Borja
Date: Mon Jan 19 2026 - 14:31:47 EST
On Mon Jan 19, 2026 at 3:15 AM -05, Andy Shevchenko wrote:
> 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>
Hi Andy,
Thank you for your feedback!
--
Thanks,
~ Kurt