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

Submitted by Matt Porter on March 15, 2013, 8:43 p.m.

Details

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.
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.
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 hide | download patch | download mbox

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