RE: [PATCH 2/2] iio: adc: ad_sigma_delta: support devices without RDY interrupt

From: Ilyas NHASSE

Date: Tue Nov 24 2026 - 03:53:43 EST


On Fri, Nov 20, 2026, Andy Shevchenko wrote:
> On Fri, Nov 20, 2026 at 12:26:48PM +0100, ILYAS NHASSE via B4 Relay wrote:

...

>> +#define AD_SD_POLL_PERIOD_US (20 * USEC_PER_MSEC)
>
> The multiplier is defined beneath time.h. Is it included?

Not directly, it only came in through iopoll.h. I'll include
<linux/time.h> in v2.

>> + int ret, ret_read;
>
> ret_read --> err
> It's visible in the code what it's for.

OK.

>> + ret = read_poll_timeout(ad_sd_read_reg, ret_read,
>> + ret_read || !(status & AD_SD_REG_STATUS_RDY),
>> + AD_SD_POLL_PERIOD_US, timeout_us, false,
>> + sigma_delta, AD_SD_REG_STATUS, 1, &status);
>
> With that, wrap on a logical boundary.

Will do as you suggested. I'll wait for the other reviews before
sending v2.

Thanks for the review,
Ilyas
The information contained in this email is intended solely for the use of the individual or entity to whom it is addressed and may contain information that is confidential. Please delete and notify the sender if received in error. SKF does not accept liability for any damage arising from this email.

For information on SKF’s processing of your personal data, please visit SKF’s Privacy Policy available via www.skf.com<https://www.skf.com/privacy>.