devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: pwm: Correct indentation and style in DTS example
@ 2025-01-07 12:58 Krzysztof Kozlowski
  2025-01-07 14:05 ` Nuno Sá
  2025-01-07 15:52 ` Uwe Kleine-König
  0 siblings, 2 replies; 3+ messages in thread
From: Krzysztof Kozlowski @ 2025-01-07 12:58 UTC (permalink / raw)
  To: Michael Hennerich, Nuno Sá, Trevor Gamblin,
	Uwe Kleine-König, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Florian Fainelli,
	Broadcom internal kernel review list, Ray Jui, Scott Branden,
	linux-pwm, devicetree, linux-kernel, linux-arm-kernel
  Cc: Krzysztof Kozlowski

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 <krzysztof.kozlowski@linaro.org>
---
 Documentation/devicetree/bindings/pwm/adi,axi-pwmgen.yaml | 8 ++++----
 .../devicetree/bindings/pwm/brcm,bcm7038-pwm.yaml         | 8 ++++----
 Documentation/devicetree/bindings/pwm/brcm,kona-pwm.yaml  | 8 ++++----
 3 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/Documentation/devicetree/bindings/pwm/adi,axi-pwmgen.yaml b/Documentation/devicetree/bindings/pwm/adi,axi-pwmgen.yaml
index aa35209f74cf..45e112d0efb4 100644
--- a/Documentation/devicetree/bindings/pwm/adi,axi-pwmgen.yaml
+++ b/Documentation/devicetree/bindings/pwm/adi,axi-pwmgen.yaml
@@ -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>;
     };
diff --git a/Documentation/devicetree/bindings/pwm/brcm,bcm7038-pwm.yaml b/Documentation/devicetree/bindings/pwm/brcm,bcm7038-pwm.yaml
index 119de3d7f9dd..44548a9da158 100644
--- a/Documentation/devicetree/bindings/pwm/brcm,bcm7038-pwm.yaml
+++ b/Documentation/devicetree/bindings/pwm/brcm,bcm7038-pwm.yaml
@@ -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>;
     };
diff --git a/Documentation/devicetree/bindings/pwm/brcm,kona-pwm.yaml b/Documentation/devicetree/bindings/pwm/brcm,kona-pwm.yaml
index e86c8053b366..fd785da5d3d7 100644
--- a/Documentation/devicetree/bindings/pwm/brcm,kona-pwm.yaml
+++ b/Documentation/devicetree/bindings/pwm/brcm,kona-pwm.yaml
@@ -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>;
     };
 ...
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] dt-bindings: pwm: Correct indentation and style in DTS example
  2025-01-07 12:58 [PATCH] dt-bindings: pwm: Correct indentation and style in DTS example Krzysztof Kozlowski
@ 2025-01-07 14:05 ` Nuno Sá
  2025-01-07 15:52 ` Uwe Kleine-König
  1 sibling, 0 replies; 3+ messages in thread
From: Nuno Sá @ 2025-01-07 14:05 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Michael Hennerich, Nuno Sá,
	Trevor Gamblin, Uwe Kleine-König, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Florian Fainelli,
	Broadcom internal kernel review list, Ray Jui, Scott Branden,
	linux-pwm, devicetree, linux-kernel, linux-arm-kernel

On Tue, 2025-01-07 at 13:58 +0100, Krzysztof Kozlowski wrote:
> 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 <krzysztof.kozlowski@linaro.org>
> ---

Acked-by: Nuno Sa <nuno.sa@analog.com>

>  Documentation/devicetree/bindings/pwm/adi,axi-pwmgen.yaml | 8 ++++----
>  .../devicetree/bindings/pwm/brcm,bcm7038-pwm.yaml         | 8 ++++----
>  Documentation/devicetree/bindings/pwm/brcm,kona-pwm.yaml  | 8 ++++----
>  3 files changed, 12 insertions(+), 12 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/pwm/adi,axi-pwmgen.yaml
> b/Documentation/devicetree/bindings/pwm/adi,axi-pwmgen.yaml
> index aa35209f74cf..45e112d0efb4 100644
> --- a/Documentation/devicetree/bindings/pwm/adi,axi-pwmgen.yaml
> +++ b/Documentation/devicetree/bindings/pwm/adi,axi-pwmgen.yaml
> @@ -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>;
>      };
> diff --git a/Documentation/devicetree/bindings/pwm/brcm,bcm7038-pwm.yaml
> b/Documentation/devicetree/bindings/pwm/brcm,bcm7038-pwm.yaml
> index 119de3d7f9dd..44548a9da158 100644
> --- a/Documentation/devicetree/bindings/pwm/brcm,bcm7038-pwm.yaml
> +++ b/Documentation/devicetree/bindings/pwm/brcm,bcm7038-pwm.yaml
> @@ -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>;
>      };
> diff --git a/Documentation/devicetree/bindings/pwm/brcm,kona-pwm.yaml
> b/Documentation/devicetree/bindings/pwm/brcm,kona-pwm.yaml
> index e86c8053b366..fd785da5d3d7 100644
> --- a/Documentation/devicetree/bindings/pwm/brcm,kona-pwm.yaml
> +++ b/Documentation/devicetree/bindings/pwm/brcm,kona-pwm.yaml
> @@ -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>;
>      };
>  ...


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] dt-bindings: pwm: Correct indentation and style in DTS example
  2025-01-07 12:58 [PATCH] dt-bindings: pwm: Correct indentation and style in DTS example Krzysztof Kozlowski
  2025-01-07 14:05 ` Nuno Sá
@ 2025-01-07 15:52 ` Uwe Kleine-König
  1 sibling, 0 replies; 3+ messages in thread
From: Uwe Kleine-König @ 2025-01-07 15:52 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Michael Hennerich, Nuno Sá, Trevor Gamblin, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Florian Fainelli,
	Broadcom internal kernel review list, Ray Jui, Scott Branden,
	linux-pwm, devicetree, linux-kernel, linux-arm-kernel

[-- Attachment #1: Type: text/plain, Size: 863 bytes --]

Hello,

On Tue, Jan 07, 2025 at 01:58:30PM +0100, Krzysztof Kozlowski wrote:
> 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 <krzysztof.kozlowski@linaro.org>
> ---
>  Documentation/devicetree/bindings/pwm/adi,axi-pwmgen.yaml | 8 ++++----
>  .../devicetree/bindings/pwm/brcm,bcm7038-pwm.yaml         | 8 ++++----
>  Documentation/devicetree/bindings/pwm/brcm,kona-pwm.yaml  | 8 ++++----
>  3 files changed, 12 insertions(+), 12 deletions(-)

Applied to

https://git.kernel.org/pub/scm/linux/kernel/git/ukleinek/linux.git pwm/for-next

Thanks
Uwe

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-01-07 15:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-07 12:58 [PATCH] dt-bindings: pwm: Correct indentation and style in DTS example Krzysztof Kozlowski
2025-01-07 14:05 ` Nuno Sá
2025-01-07 15:52 ` Uwe Kleine-König

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).