mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-31 11:31:32 +00:00
checkpatch.pl: Warn if the flattree API is used
We want people to use the livetree API, so request it. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
281236c728
commit
7fc7d24116
1 changed files with 6 additions and 0 deletions
|
@ -2249,6 +2249,12 @@ sub u_boot_line {
|
||||||
WARN("NEW_UCLASS",
|
WARN("NEW_UCLASS",
|
||||||
"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
|
||||||
|
if ($line =~ /^\+.*fdtdec_/) {
|
||||||
|
WARN("LIVETREE",
|
||||||
|
"Use the livetree API (dev_read_...)\n" . $herecurr);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sub process {
|
sub process {
|
||||||
|
|
Loading…
Add table
Reference in a new issue