Unverified Commit fffe003f authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Mark Brown
Browse files

ASoC: dt-bindings: Correct indentation and style in DTS example



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.  While touching the lines do
other non-functional changes: replace raw number with proper define for
GPIO flag and use generic node name.

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

Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/20250107125901.227995-1-krzysztof.kozlowski@linaro.org


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent a83678be
Loading
Loading
Loading
Loading
+11 −9
Original line number Diff line number Diff line
@@ -36,12 +36,14 @@ unevaluatedProperties: false

examples:
  - |
    #include <dt-bindings/gpio/gpio.h>

    i2c {
        #address-cells = <1>;
        #size-cells = <0>;
        codec@34 {
            compatible = "adi,ssm2518";
            reg = <0x34>;
       gpios = <&gpio 5 0>;
            gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
        };
    };
+10 −9
Original line number Diff line number Diff line
@@ -55,6 +55,7 @@ unevaluatedProperties: false
examples:
  - |
    #include <dt-bindings/gpio/gpio.h>

    codec {
        compatible = "everest,es7241";
        #sound-dai-cells = <0>;
+16 −16
Original line number Diff line number Diff line
@@ -76,7 +76,7 @@ examples:
    #include <dt-bindings/interrupt-controller/irq.h>
    #define KEEM_BAY_PSS_AUX_I2S3
    #define KEEM_BAY_PSS_I2S3
     i2s3: i2s@20140000 {
    i2s@20140000 {
        compatible = "intel,keembay-i2s";
        #sound-dai-cells = <0>;
        reg = <0x20140000 0x200>, /* I2S registers */
+14 −12
Original line number Diff line number Diff line
@@ -56,9 +56,11 @@ unevaluatedProperties: false
examples:
  - |
    #include <dt-bindings/gpio/gpio.h>

    i2c {
        #address-cells = <1>;
        #size-cells = <0>;

        audio-codec@2a {
            compatible = "neofidelity,ntp8918";
            #sound-dai-cells = <0>;
+17 −15
Original line number Diff line number Diff line
@@ -160,11 +160,13 @@ additionalProperties: false
examples:
  - |
    #include <dt-bindings/gpio/gpio.h>

    i2c {
        /* example for two devices with interrupt support */
        #address-cells = <1>;
        #size-cells = <0>;
     pcm6240: audio-codec@48 {

        audio-codec@48 {
            compatible = "ti,pcm6240";
            reg = <0x48>, /* primary-device */
                  <0x4b>; /* secondary-device */
Loading