]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
staging: media: av7110: use usleep_range in sp8870.c
authorPreyas Sharma <preyas17@zohomail.in>
Sat, 20 Dec 2025 09:55:21 +0000 (09:55 +0000)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Tue, 13 Jan 2026 12:21:03 +0000 (13:21 +0100)
Use usleep_range instead of udelay to fix checkpatch warning.

Signed-off-by: Preyas Sharma <preyas17@zohomail.in>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
[hverkuil: added commit message]

drivers/staging/media/av7110/sp8870.c

index 0c813860f5b207372977a4c0ccc5915b990bc681..93bf47a62e385776d52017a28d66c37b6b89bd3d 100644 (file)
@@ -496,7 +496,7 @@ static int sp8870_set_frontend(struct dvb_frontend *fe)
                                dprintk("delay = %i usec\n", check_count * 10);
                                break;
                        }
-                       udelay(10);
+                       usleep_range(10, 20);
                }
                if (valid)
                        break;