Re: [PATCH] iio: accel: adxl355: replace usleep_range() with fsleep()
From: Andy Shevchenko
Date: Sun May 10 2026 - 08:55:14 EST
On Sun, May 10, 2026 at 10:08:20AM +0500, Stepan Ionichev wrote:
> The "at least 5ms" wait after software reset has no specific upper
> bound. Switch to fsleep() which is the kernel helper for plain
> "about N microseconds" delays.
>
> No functional change.
...
> /* Wait at least 5ms after software reset */
> - usleep_range(5000, 10000);
> + fsleep(5000);
Even better to use predefined multiplier:
fsleep(5 * USEC_PER_MSEC);
This gives a hint on the value units without even needing / reading
the comment.
--
With Best Regards,
Andy Shevchenko