summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/.yamllint
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2023-03-03 22:42:23 +0100
committerRob Herring <robh@kernel.org>2023-03-08 16:04:53 +0100
commitd0dcd0ce8437ee8b99b123e8580e918542ac488c (patch)
tree928fa064c5d0276a9da02bb362b0427e8da4e618 /Documentation/devicetree/bindings/.yamllint
parentdt-bindings: Fix SPI and I2C bus node names in examples (diff)
downloadlinux-d0dcd0ce8437ee8b99b123e8580e918542ac488c.tar.xz
linux-d0dcd0ce8437ee8b99b123e8580e918542ac488c.zip
dt-bindings: yamllint: Require a space after a comment '#'
Enable yamllint to check the preferred commenting style of requiring a space after a comment character '#'. Fix the cases in the tree which have a warning with this enabled. Most cases just need a space after the '#'. A couple of cases with comments which were not intended to be comments are revealed. Those were in ti,sa2ul.yaml, ti,cal.yaml, and brcm,bcmgenet.yaml. Acked-by: Jakub Kicinski <kuba@kernel.org> Acked-by: Mark Brown <broonie@kernel.org> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> # drm/msm Reviewed-by: Conor Dooley <conor.dooley@microchip.com> Reviewed-by: Stephen Boyd <sboyd@kernel.org> Link: https://lore.kernel.org/r/20230303214223.49451-1-robh@kernel.org Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings/.yamllint')
-rw-r--r--Documentation/devicetree/bindings/.yamllint2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/devicetree/bindings/.yamllint b/Documentation/devicetree/bindings/.yamllint
index 214abd3ec440..4abe9f0a1d46 100644
--- a/Documentation/devicetree/bindings/.yamllint
+++ b/Documentation/devicetree/bindings/.yamllint
@@ -19,7 +19,7 @@ rules:
colons: {max-spaces-before: 0, max-spaces-after: 1}
commas: {min-spaces-after: 1, max-spaces-after: 1}
comments:
- require-starting-space: false
+ require-starting-space: true
min-spaces-from-content: 1
comments-indentation: disable
document-start: