Re: [PATCH v2 4/4] iio: magnetometer: ak8975: modernize polling loops with iopoll() macros
From: Jonathan Cameron
Date: Tue Apr 21 2026 - 06:39:46 EST
On Tue, 21 Apr 2026 10:07:22 +0000
Joshua Crofts <joshua.crofts1@xxxxxxxxx> wrote:
> The driver currently uses while loops and msleep() for polling during
> conversion waits.
>
> Replace the custom polling loops with readx_poll_timeout() and
> read_poll_timeout() macros from <linux/iopoll.h>. This reduces
> boilerplate, standardizes timeout handling and improves overall code
> readability, keeping the original timing and error behaviour.
>
> Assisted-by: Gemini:3.1-Pro
> Signed-off-by: Joshua Crofts <joshua.crofts1@xxxxxxxxx>
The rest of this series looks fine to me.
Jonathan