Re: [PATCH v2] iio: adc: ad7192: replace usleep_range() with fsleep()

From: Andy Shevchenko

Date: Sun May 10 2026 - 14:11:34 EST


On Sun, May 10, 2026 at 10:54:17AM +0500, Stepan Ionichev wrote:
> The "at least 500us" wait after serial interface reset has no
> specific upper bound. fsleep(500) expands to the same
> usleep_range(500, 1000) internally.
>
> Drop the trailing "/* Wait for at least 500us */" comment which
> just restated the previous arguments.
>
> No functional change.

> Signed-off-by: Stepan Ionichev <sozdayvek@xxxxxxxxx>
> ---

You missed a changelog here.

> 1 file changed, 1 insertion(+), 1 deletion(-)

...

> - usleep_range(500, 1000); /* Wait for at least 500us */
> + fsleep(500);

Have you checked the datasheet? What does it say about this sleep?

--
With Best Regards,
Andy Shevchenko