diff options
author | Simon Glass <sjg@chromium.org> | 2023-04-10 21:22:04 +0530 |
---|---|---|
committer | Praneeth Bajjuri <praneeth@ti.com> | 2023-04-12 11:47:54 -0500 |
commit | b980fe79ed5fa71ac6738d6a3417fb08ea7ed07e (patch) | |
tree | b9606a73cd42d523d0a285f8709bf12bad78d5d4 /scripts | |
parent | 63e7998371a979a08e497163406cfc7d0d080262 (diff) |
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>
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
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 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 { |