diff options
author | Simon Glass <sjg@chromium.org> | 2020-05-22 16:32:38 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-06-04 18:10:02 -0400 |
commit | 7fc7d241169d26ec79a86bfcab0e966c778defe7 (patch) | |
tree | 658ada3f2aff81a7faf3e3af2d2b9daa93d3291f /scripts | |
parent | 281236c728be2b26474fe4bfa0e53cc4c5782617 (diff) | |
download | u-boot-7fc7d241169d26ec79a86bfcab0e966c778defe7.tar.gz |
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-x | scripts/checkpatch.pl | 6 |
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 { |