[PATCH 3/3] dtc: dt-check-style: Consistently pass same content as stripped line
From: Krzysztof Kozlowski
Date: Sun Sep 06 2026 - 14:05:22 EST
Consistently pass stripped line (so code+comments, but no whitespaces),
not the final code, as a sixth "stripped" argument for a comment
DtsLine. This has no functional impact, but is more logical because
each earlier DtsLine constructors were doing this.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxxxxxxxx>
---
scripts/dtc/dt-check-style | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/dtc/dt-check-style b/scripts/dtc/dt-check-style
index 6050b4a70220..ea817287fa9e 100755
--- a/scripts/dtc/dt-check-style
+++ b/scripts/dtc/dt-check-style
@@ -203,7 +203,7 @@ def classify_lines(text):
in_block_comment = True
if not prev_complete:
- dl = DtsLine(i, raw, LineType.CONTINUATION, depth, indent_str, code)
+ dl = DtsLine(i, raw, LineType.CONTINUATION, depth, indent_str, stripped)
out.append(dl)
prev_complete = (code.endswith(';') or
code.endswith('{') or
--
2.53.0