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>
This commit is contained in:
Simon Glass
2023-02-13 08:56:38 -07:00
parent 0a06d71061
commit 48be546b70
2 changed files with 12 additions and 0 deletions

View File

@@ -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 {