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

login
register
mail settings
Submitter Matt Porter
Date March 15, 2013, 8:43 p.m.
Message ID <1363380228-7396-1-git-send-email-mporter@ti.com>
Download mbox | patch
Permalink /patch/228173/
State Accepted
Delegated to: Tom Rini
Headers show

Comments

Matt Porter - March 15, 2013, 8:43 p.m.
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(+)
Tom Rini - March 27, 2013, 6:48 p.m.
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!

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