summaryrefslogtreecommitdiff
path: root/scripts/checkpatch.pl
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-02-13 08:56:38 -0700
committerSimon Glass <sjg@chromium.org>2023-02-14 09:43:27 -0700
commit48be546b70f509d8ac02288fd5069913ec9196f3 (patch)
tree689a434be90fb42e32db7332f154cd39c29ecea9 /scripts/checkpatch.pl
parent0a06d7106195bbbe3126d205c1c173d6eb9e48a8 (diff)
downloadu-boot-48be546b70f509d8ac02288fd5069913ec9196f3.tar.gz
checkpatch: Add a warning for pre-schema driver model tags
Help ensure that these don't creep into development by adding a check in checkpatch for them. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'scripts/checkpatch.pl')
-rwxr-xr-xscripts/checkpatch.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index ccfcbb3e12..62b764f6c3 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -2680,6 +2680,12 @@ sub u_boot_line {
"DEVICE_PRIV_AUTO", $herecurr);
u_boot_struct_name($line, "per_device_plat_auto", "_plat",
"DEVICE_PLAT_AUTO", $herecurr);
+
+ # Avoid using the pre-schema driver model tags
+ if ($line =~ /^\+.*u-boot,dm-.*/) {
+ ERROR("PRE_SCHEMA",
+ "Driver model schema uses 'bootph-...' tags now\n" . $herecurr);
+ }
}
sub exclude_global_initialisers {