summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-05-22 16:32:38 -0600
committerTom Rini <trini@konsulko.com>2020-06-04 18:10:02 -0400
commit7fc7d241169d26ec79a86bfcab0e966c778defe7 (patch)
tree658ada3f2aff81a7faf3e3af2d2b9daa93d3291f /scripts
parent281236c728be2b26474fe4bfa0e53cc4c5782617 (diff)
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>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/checkpatch.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 1053d29ce9..2654f9e5f7 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -2249,6 +2249,12 @@ sub u_boot_line {
WARN("NEW_UCLASS",
"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 {