]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
iio: accel: adxl355: replace usleep_range() with fsleep()
authorStepan Ionichev <sozdayvek@gmail.com>
Sun, 10 May 2026 11:38:52 +0000 (16:38 +0500)
committerJonathan Cameron <jic23@kernel.org>
Sun, 31 May 2026 09:59:38 +0000 (10:59 +0100)
The "at least 5ms" wait after software reset has no specific upper
bound. Use fsleep() with 5 * USEC_PER_MSEC to make the unit
explicit at the call site.

No functional change.

Signed-off-by: Stepan Ionichev <sozdayvek@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/accel/adxl355_core.c

index 03e5744d9667e2b95eb954859ab55979639e59c4..89ac62ff4d04fc4986521af102f922d7054891d2 100644 (file)
@@ -349,7 +349,7 @@ static int adxl355_setup(struct adxl355_data *data)
                        return ret;
 
                /* Wait at least 5ms after software reset */
-               usleep_range(5000, 10000);
+               fsleep(5 * USEC_PER_MSEC);
 
                /* Read shadow registers for comparison */
                ret = regmap_bulk_read(data->regmap,