diff mbox

[U-Boot] .checkpatch.conf: ignore udelay->usleep_range warnings

Message ID 1363380228-7396-1-git-send-email-mporter@ti.com
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

Matt Porter March 15, 2013, 8:43 p.m. UTC
usleep_range() is a Linux facility, ignore it when udelay()
is encountered.

Signed-off-by: Matt Porter <mporter@ti.com>
---
 .checkpatch.conf |    3 +++
 1 file changed, 3 insertions(+)

Comments

Tom Rini March 27, 2013, 6:48 p.m. UTC | #1
On Fri, Mar 15, 2013 at 10:43:48AM -0000, Matt Porter wrote:

> usleep_range() is a Linux facility, ignore it when udelay()
> is encountered.
> 
> Signed-off-by: Matt Porter <mporter@ti.com>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/.checkpatch.conf b/.checkpatch.conf
index 38386b3..d88af57 100644
--- a/.checkpatch.conf
+++ b/.checkpatch.conf
@@ -15,3 +15,6 @@ 
 
 # enable more tests
 --strict
+
+# Not Linux, so we don't recommend usleep_range() over udelay()
+--ignore USLEEP_RANGE