]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
checkpatch.pl: Ignore mdelay instead of udelay
authorTom Rini <trini@konsulko.com>
Wed, 27 Aug 2025 18:38:36 +0000 (12:38 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 10 Sep 2025 16:39:24 +0000 (10:39 -0600)
Whereas in Linux, on ARM there is the notion of delay operations and
mdelay and udelay are not the same, here we just have udelay and mdelay
is a trivial wrapper. Tell checkpatch to not complain here.

Reported-by: Bhimeswararao Matsa <bhimeswararao.matsa@gmail.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
.checkpatch.conf

index c368d4147260932c7e19ee113d1be574833ee083..0827f347f6e5f8516f93fc539b64dd320ad3680a 100644 (file)
@@ -19,6 +19,9 @@
 # Not Linux, so we don't recommend usleep_range() over udelay()
 --ignore USLEEP_RANGE
 
+# We also do not have a functionally different mdelay() and udelay()
+--ignore LONG_UDELAY
+
 # Ignore networking block comment style
 --ignore NETWORKING_BLOCK_COMMENT_STYLE