Re: [PATCH v5 1/4] staging: iio: resolver: ad2s1210: refactor sample toggle

From: Jonathan Cameron
Date: Thu Oct 12 2023 - 03:57:58 EST


On Tue, 10 Oct 2023 16:12:33 -0500
David Lechner <dlechner@xxxxxxxxxxxx> wrote:

> This refactors the sample line toggle in the ad2s1210 resolver driver
> to a separate function. The sample has some timing requirements, so
> this ensures that it is always done the same way, both in the existing
> call sites and any future usage.
>
> Previously, the sample line was kept on for the duration of the read,
> but this is not necessary. Data is latched in on the rising edge and
> after the specified delay the state of the sample line does not matter.
>
> Signed-off-by: David Lechner <dlechner@xxxxxxxxxxxx>
Applied.