summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>2026-08-26 13:15:54 +0200
committerRob Herring (Arm) <robh@kernel.org>2026-08-31 08:23:17 -0500
commit35c19608562dd5d052901299cd8090017bc750a9 (patch)
treeb211e76f444f505b8007beb2945d21bf833252cf /scripts
parente2510831f8ee22da837bd2327c1f6d170d802c81 (diff)
downloadlinux-next-35c19608562dd5d052901299cd8090017bc750a9.tar.gz
linux-next-35c19608562dd5d052901299cd8090017bc750a9.zip
dtc: dt-check-style: Drop stray backslash before quote for continuation-alignment
Drop stray backslash before the quote character in a warning for continuation-alignment rule: (under "<" or \"). Since the '"' character has no quotes, drop the quotes also from '<'. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Link: https://patch.msgid.link/20260826-n-dts-style-checker-continued-v6-2-f270b1e81f8e@oss.qualcomm.com Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/dtc/dt-check-style4
-rw-r--r--scripts/dtc/dt-style-selftest/expected/yaml-cont-align.yaml.txt2
2 files changed, 3 insertions, 3 deletions
diff --git a/scripts/dtc/dt-check-style b/scripts/dtc/dt-check-style
index 5a9985baa051..22e1ceac7f8b 100755
--- a/scripts/dtc/dt-check-style
+++ b/scripts/dtc/dt-check-style
@@ -948,7 +948,7 @@ def check_continuation_alignment(ctx):
if _display_col(cont.indent_str) != target_col:
yield (cont.lineno,
'continuation should align to column %d '
- '(under "<" or \\")' % (target_col + 1))
+ '(under < or ")' % (target_col + 1))
def check_unclosed_block_comment(ctx):
@@ -1052,7 +1052,7 @@ RULES = [
'lines must not exceed 80 columns',
check_line_length),
Rule('continuation-alignment', 'strict',
- 'multi-line property continuations align under "<" or "\\""',
+ 'multi-line property continuations align under < or "',
check_continuation_alignment),
Rule('unused-labels', 'strict',
'every label must be &-referenced in the same example/file '
diff --git a/scripts/dtc/dt-style-selftest/expected/yaml-cont-align.yaml.txt b/scripts/dtc/dt-style-selftest/expected/yaml-cont-align.yaml.txt
index b5576dd0f6b1..c0801c56d5db 100644
--- a/scripts/dtc/dt-style-selftest/expected/yaml-cont-align.yaml.txt
+++ b/scripts/dtc/dt-style-selftest/expected/yaml-cont-align.yaml.txt
@@ -1,2 +1,2 @@
# mode=strict
-bad/yaml-cont-align.yaml:29: example 0 [continuation-alignment] continuation should align to column 11 (under "<" or \")
+bad/yaml-cont-align.yaml:29: example 0 [continuation-alignment] continuation should align to column 11 (under < or ")