]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
staging: media: atomisp: replace msleep() with fsleep() in atomisp-gc2235.c
authorOskar Ray-Frayssinet <rayfraytech@gmail.com>
Tue, 10 Mar 2026 15:03:14 +0000 (16:03 +0100)
committerSakari Ailus <sakari.ailus@linux.intel.com>
Wed, 20 May 2026 10:21:42 +0000 (13:21 +0300)
Replace msleep(5) with fsleep(5000) to avoid sleeping longer than
necessary. msleep() with values less than 20ms may sleep for up to
20ms due to timer granularity. fsleep() selects the appropriate sleep
function automatically.

Signed-off-by: Oskar Ray-Frayssinet <rayfraytech@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
drivers/staging/media/atomisp/i2c/atomisp-gc2235.c

index 998c9f46bd0684a6cf711679b6dda1436b9e00b0..f9cc5f45fe000ca661d2d098c91ea4b35665b551 100644 (file)
@@ -433,7 +433,7 @@ static int power_up(struct v4l2_subdev *sd)
                        goto fail_power;
        }
 
-       msleep(5);
+       fsleep(5000);
        return 0;
 
 fail_clk: