]> Git Repo - linux.git/commitdiff
dt-bindings: pwm: Correct indentation and style in DTS example
authorKrzysztof Kozlowski <[email protected]>
Tue, 7 Jan 2025 12:58:30 +0000 (13:58 +0100)
committerUwe Kleine-König <[email protected]>
Wed, 8 Jan 2025 07:30:56 +0000 (08:30 +0100)
DTS example in the bindings should be indented with 2- or 4-spaces and
aligned with opening '- |', so correct any differences like 3-spaces or
mixtures 2- and 4-spaces in one binding.

No functional changes here, but saves some comments during reviews of
new patches built on existing code.

Signed-off-by: Krzysztof Kozlowski <[email protected]>
Acked-by: Nuno Sa <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Uwe Kleine-König <[email protected]>
Documentation/devicetree/bindings/pwm/adi,axi-pwmgen.yaml
Documentation/devicetree/bindings/pwm/brcm,bcm7038-pwm.yaml
Documentation/devicetree/bindings/pwm/brcm,kona-pwm.yaml

index aa35209f74cfa89960197754c82537beb8141645..45e112d0efb4663bc7fbb3a25a12d66aa8b7492d 100644 (file)
@@ -41,8 +41,8 @@ unevaluatedProperties: false
 examples:
   - |
     pwm@44b00000 {
-       compatible = "adi,axi-pwmgen-2.00.a";
-       reg = <0x44b00000 0x1000>;
-       clocks = <&spi_clk>;
-       #pwm-cells = <3>;
+        compatible = "adi,axi-pwmgen-2.00.a";
+        reg = <0x44b00000 0x1000>;
+        clocks = <&spi_clk>;
+        #pwm-cells = <3>;
     };
index 119de3d7f9dd717f3b77d9f0a8ae82415542cbad..44548a9da15807d4cd2617f17806fd3c927202d3 100644 (file)
@@ -35,8 +35,8 @@ additionalProperties: false
 examples:
   - |
     pwm: pwm@f0408000 {
-       compatible = "brcm,bcm7038-pwm";
-       reg = <0xf0408000 0x28>;
-       #pwm-cells = <2>;
-       clocks = <&upg_fixed>;
+        compatible = "brcm,bcm7038-pwm";
+        reg = <0xf0408000 0x28>;
+        #pwm-cells = <2>;
+        clocks = <&upg_fixed>;
     };
index e86c8053b366a2e24da8dd69f71c12d9552e14a3..fd785da5d3d73c784e4b0c38bfd1f79737003796 100644 (file)
@@ -43,9 +43,9 @@ examples:
     #include <dt-bindings/clock/bcm281xx.h>
 
     pwm@3e01a000 {
-       compatible = "brcm,bcm11351-pwm", "brcm,kona-pwm";
-       reg = <0x3e01a000 0xcc>;
-       clocks = <&slave_ccu BCM281XX_SLAVE_CCU_PWM>;
-       #pwm-cells = <3>;
+        compatible = "brcm,bcm11351-pwm", "brcm,kona-pwm";
+        reg = <0x3e01a000 0xcc>;
+        clocks = <&slave_ccu BCM281XX_SLAVE_CCU_PWM>;
+        #pwm-cells = <3>;
     };
 ...
This page took 0.057703 seconds and 4 git commands to generate.