]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: magnetometer: bmc150_magn: replace msleep with fsleep
authorNeel Bullywon <neelb2403@gmail.com>
Mon, 16 Feb 2026 01:54:53 +0000 (20:54 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 23 Feb 2026 08:24:23 +0000 (08:24 +0000)
commitd1fa7b316b9fc8f11f8158b1beda9150165a377c
treefdce5678cbac1fbc4e0a71ecb5eaab111fd7f8f4
parente3310a32e0573ade05ae09521b17c1463753e872
iio: magnetometer: bmc150_magn: replace msleep with fsleep

Replace msleep(5) with fsleep(5 * USEC_PER_MSEC) to allow the kernel
to select the most appropriate delay mechanism based on duration.
Using USEC_PER_MSEC makes the unit conversion explicit.

Signed-off-by: Neel Bullywon <neelb2403@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/magnetometer/bmc150_magn.c