devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: iio: Use consistent indentation in the example
@ 2026-09-13 12:33 Krzysztof Kozlowski
  2026-09-13 17:05 ` Jonathan Cameron
  0 siblings, 1 reply; 2+ messages in thread
From: Krzysztof Kozlowski @ 2026-09-13 12:33 UTC (permalink / raw)
  To: Antoniu Miclaus, Nuno Sá, Michael Hennerich,
	Jonathan Cameron, David Lechner, Andy Shevchenko, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Sergiu Cuciurean,
	Dragos Bogdan, Javier Carrasco, Eddie James, Ceclan Dumitru,
	Ramona Nechita, Ivan Mikhaylov, Mike Looijmans,
	Manivannan Sadhasivam, Joe Sandom, Brian Masney, Martyn Welch,
	Rishi Gupta, linux-iio, linux, devicetree, linux-kernel
  Cc: Krzysztof Kozlowski

Correct indentation in the examples to consistent 2- or 4-spaces
indentation to fix dt-check-style warnings ("example 0
[indent-consistent] indent mismatch ...").  Preferred is 4-spaces, but
re-indenting entire example just for that is too much churn.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
---
 .../bindings/iio/adc/adi,ad4080.yaml          | 36 +++++++++----------
 .../bindings/iio/adc/adi,ad4851.yaml          |  8 ++---
 .../bindings/iio/adc/adi,ad7173.yaml          |  2 +-
 .../bindings/iio/adc/adi,ad7768-1.yaml        |  6 ++--
 .../bindings/iio/adc/adi,ad7779.yaml          | 30 ++++++++--------
 .../bindings/iio/adc/adi,ade9000.yaml         | 28 +++++++--------
 .../bindings/iio/adc/maxim,max34408.yaml      | 28 +++++++--------
 .../bindings/iio/adc/nxp,lpc1850-adc.yaml     |  2 +-
 .../bindings/iio/adc/ti,ads1298.yaml          | 18 +++++-----
 .../bindings/iio/light/adux1020.yaml          |  8 ++---
 .../bindings/iio/light/amstaos,tsl2591.yaml   |  2 +-
 .../bindings/iio/light/isl29018.yaml          |  6 ++--
 .../bindings/iio/light/noa1305.yaml           |  4 +--
 .../bindings/iio/light/stk33xx.yaml           | 10 +++---
 .../bindings/iio/light/tsl2583.yaml           |  4 +--
 .../bindings/iio/light/tsl2772.yaml           | 14 ++++----
 .../bindings/iio/light/vishay,veml6030.yaml   |  8 ++---
 .../iio/pressure/infineon,dps310.yaml         | 10 +++---
 .../iio/proximity/vishay,vcnl3020.yaml        |  6 ++--
 19 files changed, 115 insertions(+), 115 deletions(-)

diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad4080.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad4080.yaml
index db8467b98e67..354d73aa3e3d 100644
--- a/Documentation/devicetree/bindings/iio/adc/adi,ad4080.yaml
+++ b/Documentation/devicetree/bindings/iio/adc/adi,ad4080.yaml
@@ -127,15 +127,15 @@ examples:
         #size-cells = <0>;
 
         adc@0 {
-          compatible = "adi,ad4080";
-          reg = <0>;
-          spi-max-frequency = <10000000>;
-          vdd33-supply = <&vdd33>;
-          vddldo-supply = <&vddldo>;
-          vrefin-supply = <&vrefin>;
-          clocks = <&cnv>;
-          clock-names = "cnv";
-          io-backends = <&iio_backend>;
+            compatible = "adi,ad4080";
+            reg = <0>;
+            spi-max-frequency = <10000000>;
+            vdd33-supply = <&vdd33>;
+            vddldo-supply = <&vddldo>;
+            vrefin-supply = <&vrefin>;
+            clocks = <&cnv>;
+            clock-names = "cnv";
+            io-backends = <&iio_backend>;
         };
     };
   - |
@@ -144,15 +144,15 @@ examples:
         #size-cells = <0>;
 
         adc@0 {
-          compatible = "adi,ad4880";
-          reg = <0>, <1>;
-          spi-max-frequency = <10000000>;
-          vdd33-supply = <&vdd33>;
-          vddldo-supply = <&vddldo>;
-          vrefin-supply = <&vrefin>;
-          clocks = <&cnv>;
-          clock-names = "cnv";
-          io-backends = <&iio_backend_cha>, <&iio_backend_chb>;
+            compatible = "adi,ad4880";
+            reg = <0>, <1>;
+            spi-max-frequency = <10000000>;
+            vdd33-supply = <&vdd33>;
+            vddldo-supply = <&vddldo>;
+            vrefin-supply = <&vrefin>;
+            clocks = <&cnv>;
+            clock-names = "cnv";
+            io-backends = <&iio_backend_cha>, <&iio_backend_chb>;
         };
     };
 ...
diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad4851.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad4851.yaml
index b107322e0ea3..49708ce0b230 100644
--- a/Documentation/devicetree/bindings/iio/adc/adi,ad4851.yaml
+++ b/Documentation/devicetree/bindings/iio/adc/adi,ad4851.yaml
@@ -142,13 +142,13 @@ examples:
             io-backends = <&iio_backend>;
 
             channel@0 {
-              reg = <0>;
-              diff-channels = <0 0>;
-              bipolar;
+                reg = <0>;
+                diff-channels = <0 0>;
+                bipolar;
             };
 
             channel@1 {
-              reg = <1>;
+                reg = <1>;
             };
         };
     };
diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7173.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad7173.yaml
index 62d906e24997..e178007b9a22 100644
--- a/Documentation/devicetree/bindings/iio/adc/adi,ad7173.yaml
+++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7173.yaml
@@ -443,7 +443,7 @@ examples:
       #address-cells = <1>;
       #size-cells = <0>;
 
-       adc@0 {
+      adc@0 {
         compatible = "adi,ad4111";
         reg = <0>;
 
diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7768-1.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad7768-1.yaml
index dfa2d7fa9fb3..7b72d14e104c 100644
--- a/Documentation/devicetree/bindings/iio/adc/adi,ad7768-1.yaml
+++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7768-1.yaml
@@ -238,9 +238,9 @@ examples:
             };
 
             regulators {
-              vcm_reg: vcm-output {
-                regulator-name = "ad7768-1-vcm";
-              };
+                vcm_reg: vcm-output {
+                    regulator-name = "ad7768-1-vcm";
+                };
             };
         };
     };
diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7779.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad7779.yaml
index ba3f7b2bd6cf..37e25a6196e7 100644
--- a/Documentation/devicetree/bindings/iio/adc/adi,ad7779.yaml
+++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7779.yaml
@@ -122,14 +122,14 @@ examples:
         #size-cells = <0>;
 
         adc@0 {
-          compatible = "adi,ad7779";
-          reg = <0>;
-          start-gpios = <&gpio0 87 GPIO_ACTIVE_LOW>;
-          reset-gpios = <&gpio0 93 GPIO_ACTIVE_LOW>;
-          interrupt-parent = <&intc>;
-          interrupts = <0 56 IRQ_TYPE_LEVEL_HIGH>;
-          interrupt-names = "adc_rdy";
-          clocks = <&adc_clk>;
+            compatible = "adi,ad7779";
+            reg = <0>;
+            start-gpios = <&gpio0 87 GPIO_ACTIVE_LOW>;
+            reset-gpios = <&gpio0 93 GPIO_ACTIVE_LOW>;
+            interrupt-parent = <&intc>;
+            interrupts = <0 56 IRQ_TYPE_LEVEL_HIGH>;
+            interrupt-names = "adc_rdy";
+            clocks = <&adc_clk>;
         };
     };
 
@@ -140,13 +140,13 @@ examples:
         #size-cells = <0>;
 
         adc@0 {
-          compatible = "adi,ad7779";
-          reg = <0>;
-          start-gpios = <&gpio0 87 GPIO_ACTIVE_LOW>;
-          reset-gpios = <&gpio0 93 GPIO_ACTIVE_LOW>;
-          clocks = <&adc_clk>;
-          io-backends = <&iio_backend>;
-          adi,num-lanes = <4>;
+            compatible = "adi,ad7779";
+            reg = <0>;
+            start-gpios = <&gpio0 87 GPIO_ACTIVE_LOW>;
+            reset-gpios = <&gpio0 93 GPIO_ACTIVE_LOW>;
+            clocks = <&adc_clk>;
+            io-backends = <&iio_backend>;
+            adi,num-lanes = <4>;
         };
     };
 ...
diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ade9000.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ade9000.yaml
index 1e940e8c7297..0971a29bf372 100644
--- a/Documentation/devicetree/bindings/iio/adc/adi,ade9000.yaml
+++ b/Documentation/devicetree/bindings/iio/adc/adi,ade9000.yaml
@@ -89,20 +89,20 @@ examples:
     #include <dt-bindings/interrupt-controller/irq.h>
 
     spi {
-      #address-cells = <1>;
-      #size-cells = <0>;
+        #address-cells = <1>;
+        #size-cells = <0>;
 
-      adc@0 {
-          compatible = "adi,ade9000";
-          reg = <0>;
-          spi-max-frequency = <7000000>;
+        adc@0 {
+            compatible = "adi,ade9000";
+            reg = <0>;
+            spi-max-frequency = <7000000>;
 
-          #clock-cells = <0>;
-          reset-gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
-          interrupts = <2 IRQ_TYPE_EDGE_FALLING>, <3 IRQ_TYPE_EDGE_FALLING>, <4 IRQ_TYPE_EDGE_FALLING>;
-          interrupt-names = "irq0", "irq1", "dready";
-          interrupt-parent = <&gpio>;
-          clocks = <&ext_clock_24576khz>;
-          vdd-supply = <&vdd_reg>;
-      };
+            #clock-cells = <0>;
+            reset-gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
+            interrupts = <2 IRQ_TYPE_EDGE_FALLING>, <3 IRQ_TYPE_EDGE_FALLING>, <4 IRQ_TYPE_EDGE_FALLING>;
+            interrupt-names = "irq0", "irq1", "dready";
+            interrupt-parent = <&gpio>;
+            clocks = <&ext_clock_24576khz>;
+            vdd-supply = <&vdd_reg>;
+        };
     };
diff --git a/Documentation/devicetree/bindings/iio/adc/maxim,max34408.yaml b/Documentation/devicetree/bindings/iio/adc/maxim,max34408.yaml
index 4cba856e8d47..bad780d1bbfb 100644
--- a/Documentation/devicetree/bindings/iio/adc/maxim,max34408.yaml
+++ b/Documentation/devicetree/bindings/iio/adc/maxim,max34408.yaml
@@ -118,22 +118,22 @@ examples:
         #size-cells = <0>;
 
         adc@1e {
-              compatible = "maxim,max34409";
-              reg = <0x1e>;
-              powerdown-gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
-              powerdown-status-gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
+            compatible = "maxim,max34409";
+            reg = <0x1e>;
+            powerdown-gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
+            powerdown-status-gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
 
-              #address-cells = <1>;
-              #size-cells = <0>;
+            #address-cells = <1>;
+            #size-cells = <0>;
 
-              channel@0 {
-                  reg = <0x0>;
-                  maxim,rsense-val-micro-ohms = <5000>;
-              };
+            channel@0 {
+                reg = <0x0>;
+                maxim,rsense-val-micro-ohms = <5000>;
+            };
 
-              channel@1 {
-                  reg = <0x1>;
-                  maxim,rsense-val-micro-ohms = <10000>;
-             };
+            channel@1 {
+                reg = <0x1>;
+                maxim,rsense-val-micro-ohms = <10000>;
+            };
         };
     };
diff --git a/Documentation/devicetree/bindings/iio/adc/nxp,lpc1850-adc.yaml b/Documentation/devicetree/bindings/iio/adc/nxp,lpc1850-adc.yaml
index 70b38038a080..1e2df3dd15d1 100644
--- a/Documentation/devicetree/bindings/iio/adc/nxp,lpc1850-adc.yaml
+++ b/Documentation/devicetree/bindings/iio/adc/nxp,lpc1850-adc.yaml
@@ -56,6 +56,6 @@ examples:
             clocks = <&ccu1 CLK_APB3_ADC0>;
             vref-supply = <&reg_vdda>;
             resets = <&rgu 40>;
-         };
+        };
     };
 ...
diff --git a/Documentation/devicetree/bindings/iio/adc/ti,ads1298.yaml b/Documentation/devicetree/bindings/iio/adc/ti,ads1298.yaml
index 71f9f9b745cb..afcc683db149 100644
--- a/Documentation/devicetree/bindings/iio/adc/ti,ads1298.yaml
+++ b/Documentation/devicetree/bindings/iio/adc/ti,ads1298.yaml
@@ -65,15 +65,15 @@ examples:
         #size-cells = <0>;
 
         adc@1 {
-          reg = <1>;
-          compatible = "ti,ads1298";
-          label = "ads1298-1-ecg";
-          avdd-supply = <&reg_iso_5v_a>;
-          clocks = <&clk_ads1298>;
-          interrupt-parent = <&gpio0>;
-          interrupts = <78 IRQ_TYPE_EDGE_FALLING>;
-          spi-max-frequency = <20000000>;
-          spi-cpha;
+            reg = <1>;
+            compatible = "ti,ads1298";
+            label = "ads1298-1-ecg";
+            avdd-supply = <&reg_iso_5v_a>;
+            clocks = <&clk_ads1298>;
+            interrupt-parent = <&gpio0>;
+            interrupts = <78 IRQ_TYPE_EDGE_FALLING>;
+            spi-max-frequency = <20000000>;
+            spi-cpha;
         };
     };
 ...
diff --git a/Documentation/devicetree/bindings/iio/light/adux1020.yaml b/Documentation/devicetree/bindings/iio/light/adux1020.yaml
index d7d14f2f1c20..83abe984a1da 100644
--- a/Documentation/devicetree/bindings/iio/light/adux1020.yaml
+++ b/Documentation/devicetree/bindings/iio/light/adux1020.yaml
@@ -40,10 +40,10 @@ examples:
         #size-cells = <0>;
 
         adux1020@64 {
-                compatible = "adi,adux1020";
-                reg = <0x64>;
-                interrupt-parent = <&msmgpio>;
-                interrupts = <24 IRQ_TYPE_LEVEL_HIGH>;
+            compatible = "adi,adux1020";
+            reg = <0x64>;
+            interrupt-parent = <&msmgpio>;
+            interrupts = <24 IRQ_TYPE_LEVEL_HIGH>;
         };
     };
 ...
diff --git a/Documentation/devicetree/bindings/iio/light/amstaos,tsl2591.yaml b/Documentation/devicetree/bindings/iio/light/amstaos,tsl2591.yaml
index 83b88c6a243d..512625d625a8 100644
--- a/Documentation/devicetree/bindings/iio/light/amstaos,tsl2591.yaml
+++ b/Documentation/devicetree/bindings/iio/light/amstaos,tsl2591.yaml
@@ -45,6 +45,6 @@ examples:
             compatible = "amstaos,tsl2591";
             reg = <0x29>;
             interrupts = <20 IRQ_TYPE_EDGE_FALLING>;
-       };
+        };
     };
 ...
diff --git a/Documentation/devicetree/bindings/iio/light/isl29018.yaml b/Documentation/devicetree/bindings/iio/light/isl29018.yaml
index 0ea278b07d1c..9524f0a1d195 100644
--- a/Documentation/devicetree/bindings/iio/light/isl29018.yaml
+++ b/Documentation/devicetree/bindings/iio/light/isl29018.yaml
@@ -50,9 +50,9 @@ examples:
         #size-cells = <0>;
 
         sensor@44 {
-                compatible = "isil,isl29018";
-                reg = <0x44>;
-                interrupts-extended = <&msmgpio 61 IRQ_TYPE_LEVEL_HIGH>;
+            compatible = "isil,isl29018";
+            reg = <0x44>;
+            interrupts-extended = <&msmgpio 61 IRQ_TYPE_LEVEL_HIGH>;
         };
     };
 ...
diff --git a/Documentation/devicetree/bindings/iio/light/noa1305.yaml b/Documentation/devicetree/bindings/iio/light/noa1305.yaml
index fe7bfe1adbda..e1c64c151932 100644
--- a/Documentation/devicetree/bindings/iio/light/noa1305.yaml
+++ b/Documentation/devicetree/bindings/iio/light/noa1305.yaml
@@ -39,8 +39,8 @@ examples:
         #size-cells = <0>;
 
         light@39 {
-                compatible = "onnn,noa1305";
-                reg = <0x39>;
+            compatible = "onnn,noa1305";
+            reg = <0x39>;
         };
     };
 ...
diff --git a/Documentation/devicetree/bindings/iio/light/stk33xx.yaml b/Documentation/devicetree/bindings/iio/light/stk33xx.yaml
index e4341fdced98..f071edef28cd 100644
--- a/Documentation/devicetree/bindings/iio/light/stk33xx.yaml
+++ b/Documentation/devicetree/bindings/iio/light/stk33xx.yaml
@@ -52,11 +52,11 @@ examples:
         #size-cells = <0>;
 
         stk3310@48 {
-                compatible = "sensortek,stk3310";
-                reg = <0x48>;
-                proximity-near-level = <25>;
-                interrupt-parent = <&gpio1>;
-                interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
+            compatible = "sensortek,stk3310";
+            reg = <0x48>;
+            proximity-near-level = <25>;
+            interrupt-parent = <&gpio1>;
+            interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
         };
     };
 ...
diff --git a/Documentation/devicetree/bindings/iio/light/tsl2583.yaml b/Documentation/devicetree/bindings/iio/light/tsl2583.yaml
index 7b92ba8cbb9f..aed4ab710e46 100644
--- a/Documentation/devicetree/bindings/iio/light/tsl2583.yaml
+++ b/Documentation/devicetree/bindings/iio/light/tsl2583.yaml
@@ -41,8 +41,8 @@ examples:
         #size-cells = <0>;
 
         light-sensor@29 {
-                compatible = "amstaos,tsl2581";
-                reg = <0x29>;
+            compatible = "amstaos,tsl2581";
+            reg = <0x29>;
         };
     };
 ...
diff --git a/Documentation/devicetree/bindings/iio/light/tsl2772.yaml b/Documentation/devicetree/bindings/iio/light/tsl2772.yaml
index 9921ccaa64a0..38a3c82cb879 100644
--- a/Documentation/devicetree/bindings/iio/light/tsl2772.yaml
+++ b/Documentation/devicetree/bindings/iio/light/tsl2772.yaml
@@ -74,13 +74,13 @@ examples:
         #size-cells = <0>;
 
         sensor@39 {
-                compatible = "amstaos,tsl2772";
-                reg = <0x39>;
-                interrupts-extended = <&msmgpio 61 IRQ_TYPE_EDGE_FALLING>;
-                vdd-supply = <&pm8941_l17>;
-                vddio-supply = <&pm8941_lvs1>;
-                amstaos,proximity-diodes = <0>;
-                led-max-microamp = <100000>;
+            compatible = "amstaos,tsl2772";
+            reg = <0x39>;
+            interrupts-extended = <&msmgpio 61 IRQ_TYPE_EDGE_FALLING>;
+            vdd-supply = <&pm8941_l17>;
+            vddio-supply = <&pm8941_lvs1>;
+            amstaos,proximity-diodes = <0>;
+            led-max-microamp = <100000>;
         };
     };
 ...
diff --git a/Documentation/devicetree/bindings/iio/light/vishay,veml6030.yaml b/Documentation/devicetree/bindings/iio/light/vishay,veml6030.yaml
index 0041e1db6838..94b3fe5cef0c 100644
--- a/Documentation/devicetree/bindings/iio/light/vishay,veml6030.yaml
+++ b/Documentation/devicetree/bindings/iio/light/vishay,veml6030.yaml
@@ -101,10 +101,10 @@ examples:
         #size-cells = <0>;
 
         light-sensor@10 {
-                compatible = "vishay,veml6030";
-                reg = <0x10>;
-                interrupts = <12 IRQ_TYPE_LEVEL_LOW>;
-                vdd-supply = <&vdd>;
+            compatible = "vishay,veml6030";
+            reg = <0x10>;
+            interrupts = <12 IRQ_TYPE_LEVEL_LOW>;
+            vdd-supply = <&vdd>;
         };
     };
 ...
diff --git a/Documentation/devicetree/bindings/iio/pressure/infineon,dps310.yaml b/Documentation/devicetree/bindings/iio/pressure/infineon,dps310.yaml
index e5d1e6c48939..1912a1b0b4ba 100644
--- a/Documentation/devicetree/bindings/iio/pressure/infineon,dps310.yaml
+++ b/Documentation/devicetree/bindings/iio/pressure/infineon,dps310.yaml
@@ -45,10 +45,10 @@ examples:
         #size-cells = <0>;
 
         dps: pressure-sensor@76 {
-          compatible = "infineon,dps310";
-          reg = <0x76>;
-          #io-channel-cells = <0>;
-          vdd-supply = <&vref1>;
-          vddio-supply = <&vref2>;
+            compatible = "infineon,dps310";
+            reg = <0x76>;
+            #io-channel-cells = <0>;
+            vdd-supply = <&vref1>;
+            vddio-supply = <&vref2>;
         };
     };
diff --git a/Documentation/devicetree/bindings/iio/proximity/vishay,vcnl3020.yaml b/Documentation/devicetree/bindings/iio/proximity/vishay,vcnl3020.yaml
index fbd3a2e32280..f84aece886ab 100644
--- a/Documentation/devicetree/bindings/iio/proximity/vishay,vcnl3020.yaml
+++ b/Documentation/devicetree/bindings/iio/proximity/vishay,vcnl3020.yaml
@@ -57,8 +57,8 @@ examples:
         #size-cells = <0>;
 
         proximity@13 {
-              compatible = "vishay,vcnl3020";
-              reg = <0x13>;
-              vishay,led-current-microamp = <200000>;
+            compatible = "vishay,vcnl3020";
+            reg = <0x13>;
+            vishay,led-current-microamp = <200000>;
         };
     };
-- 
2.53.0


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

end of thread, other threads:[~2026-09-13 17:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-13 12:33 [PATCH] dt-bindings: iio: Use consistent indentation in the example Krzysztof Kozlowski
2026-09-13 17:05 ` Jonathan Cameron

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).