Re: [PATCH v1 04/13] iio: adc: ad4134: Serialize single-read operations
From: Andy Shevchenko
Date: Thu Sep 03 2026 - 02:28:09 EST
On Wed, Sep 02, 2026 at 02:22:41PM -0300, Marcelo Schmitt wrote:
> Protect single-sample read operations from going wrong if two or more of
> them run concurrently. Serialize the data read operation so to avoid
> single-sample read requests disrupting each other.
...
> case IIO_CHAN_INFO_RAW:
> + guard(mutex)(&st->lock);
Always delimit guard()() with a blank line.
> gpiod_set_value_cansleep(st->odr_gpio, 1);
...
With blank line added
Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxx>
--
With Best Regards,
Andy Shevchenko