mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
checkpatch: skip fdtdec_* check for tools
Have checkpatch.pl skip warnings for use of fdtdec_* functions in ooling; livetree isn't used there. Signed-off-by: Lars Feyaerts <lars@bitbiz.be> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
5ae883c716
commit
814774c076
1 changed files with 2 additions and 2 deletions
|
@ -2606,8 +2606,8 @@ sub u_boot_line {
|
||||||
"Possible new uclass - make sure to add a sandbox driver, plus a test in test/dm/<name>.c\n" . $herecurr);
|
"Possible new uclass - make sure to add a sandbox driver, plus a test in test/dm/<name>.c\n" . $herecurr);
|
||||||
}
|
}
|
||||||
|
|
||||||
# try to get people to use the livetree API
|
# try to get people to use the livetree API, except when changing tooling
|
||||||
if ($line =~ /^\+.*fdtdec_/) {
|
if ($line =~ /^\+.*fdtdec_/ && $realfile !~ /^tools\//) {
|
||||||
WARN("LIVETREE",
|
WARN("LIVETREE",
|
||||||
"Use the livetree API (dev_read_...)\n" . $herecurr);
|
"Use the livetree API (dev_read_...)\n" . $herecurr);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue