dt-bindings: clock: imx8mn: Fix tab indentation for yaml file
Subsystems (5)
PATCH 1/1 dt-bindings: clock: imx8mn: Fix tab indentation for yaml file
From: Anson Huang <[email protected]>
YAML file can NOT contain tab as indentation, fix it.
--- Documentation/devicetree/bindings/clock/imx8mn-clock.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/clock/imx8mn-clock.yaml +1 -1
@@ -71,7 +71,7 @@ examples: compatible = "fixed-clock"; #clock-cells = <0>; clock-frequency = <32768>; - clock-output-names = "osc_32k"; + clock-output-names = "osc_32k"; }; osc_24m: clock-osc-24m {
Signature · 1 line
2.7.4
Quoting [email protected] (2019-07-24 19:05:51)
Quoted 4 lines
From: Anson Huang <[email protected]>
YAML file can NOT contain tab as indentation, fix it.
Would be nice if checkpatch could check for this.
Quoted 2 lines
Fixes 6d6062553e3d ("dt-bindings: imx: Add clock binding doc for i.MX8MN")Signed-off-by Anson Huang <[email protected]>
Quoted 8 lines · Stephen Boyd
Quoting [email protected] (2019-07-24 19:05:51)
Quoted 4 lines
From: Anson Huang <[email protected]>
YAML file can NOT contain tab as indentation, fix it.
Would be nice if checkpatch could check for this.
Would be nice if folks just ran 'make dt_binding_check'. :) It wouldn't be hard to add a tab check to checkpatch, but that's just one potential problem.
Rob
Stephen Boyd
maintainerQuoting Rob Herring (2019-07-25 14:37:24)
Quoted 5 lines · Stephen Boyd
Quoted 4 lines
Quoting [email protected] (2019-07-24 19:05:51)
Quoted 2 lines
From: Anson Huang <[email protected]>
Quoted 9 lines
Quoted 4 lines
Quoted 2 lines
YAML file can NOT contain tab as indentation, fix it.
Would be nice if checkpatch could check for this.
Would be nice if folks just ran 'make
dt_binding_check'. :) It wouldn't be hard to add a tab check to checkpatch, but that's just one potential problem.
Cool, thanks for the pointer. Seems I forgot :)
Here's a patch to improve the documentation and make help to answer questions I had about how to work this into my workflow.
Documentation/devicetree/writing-schema.md +1 -0
@@ -120,6 +120,7 @@ This will first run the `dt_binding_check` which generates the processed schema. It is also possible to run checks with a single schema file by setting the 'DT_SCHEMA_FILES' variable to a specific schema file. +`make dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/trivial-devices.yaml` `make dtbs_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/trivial-devices.yaml`
Makefile +4 -2
@@ -1503,8 +1503,10 @@ help: @echo '' @$(if $(dtstree), \ echo 'Devicetree:'; \ - echo '* dtbs - Build device tree blobs for enabled boards'; \ - echo ' dtbs_install - Install dtbs to $(INSTALL_DTBS_PATH)'; \ + echo '* dtbs - Build device tree blobs for enabled boards'; \ + echo ' dtbs_install - Install dtbs to $(INSTALL_DTBS_PATH)'; \ + echo ' dt_binding_check - Validate device tree binding documents'; \ + echo ' dtbs_check - Validate device tree source files'; \ echo '') @echo 'Userspace tools targets:'
Quoted 6 lines · On Thu, Jul 25, 2019 at 10:05:51AM +0800, [email protected] wrote:
From: Anson Huang <[email protected]>
YAML file can NOT contain tab as indentation, fix it.
Fixes 6d6062553e3d ("dt-bindings: imx: Add clock binding doc for i.MX8MN")Signed-off-by Anson Huang <[email protected]>
I squashed it into the original commit.
Shawn