[PATCH] dt-bindings: leds: Use consistent indentation in the example
From: Krzysztof Kozlowski <hidden>
Date: 2026-09-13 12:33:11
Also in:
dri-devel, linux-leds, lkml
Subsystem:
arm/qualcomm mailing list, led subsystem, open firmware and flattened device tree bindings, the rest · Maintainers:
Lee Jones, Pavel Machek, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Linus Torvalds
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 <redacted>
---
.../leds/backlight/lm3630a-backlight.yaml | 52 +++++++++----------
.../leds/backlight/lp855x-backlight.yaml | 18 +++----
.../bindings/leds/backlight/qcom-wled.yaml | 2 +-
.../bindings/leds/leds-consumer.yaml | 14 ++---
.../devicetree/bindings/leds/leds-lp50xx.yaml | 12 ++---
.../devicetree/bindings/leds/leds-lp5860.yaml | 12 ++---
.../devicetree/bindings/leds/nxp,pca963x.yaml | 24 ++++-----
7 files changed, 67 insertions(+), 67 deletions(-)
diff --git a/Documentation/devicetree/bindings/leds/backlight/lm3630a-backlight.yaml b/Documentation/devicetree/bindings/leds/backlight/lm3630a-backlight.yaml
index 3c9b4054ed9a..6393cbf3afdf 100644
--- a/Documentation/devicetree/bindings/leds/backlight/lm3630a-backlight.yaml
+++ b/Documentation/devicetree/bindings/leds/backlight/lm3630a-backlight.yaml@@ -99,20 +99,20 @@ examples: #size-cells = <0>; led-controller@38 { - compatible = "ti,lm3630a"; - reg = <0x38>; - enable-gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>; + compatible = "ti,lm3630a"; + reg = <0x38>; + enable-gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>; - #address-cells = <1>; - #size-cells = <0>; + #address-cells = <1>; + #size-cells = <0>; - led@0 { - reg = <0>; - led-sources = <0 1>; - label = "lcd-backlight"; - default-brightness = <200>; - max-brightness = <255>; - }; + led@0 { + reg = <0>; + led-sources = <0 1>; + label = "lcd-backlight"; + default-brightness = <200>; + max-brightness = <255>; + }; }; }; - |
@@ -121,22 +121,22 @@ examples: #size-cells = <0>; led-controller@38 { - compatible = "ti,lm3630a"; - reg = <0x38>; + compatible = "ti,lm3630a"; + reg = <0x38>; - #address-cells = <1>; - #size-cells = <0>; + #address-cells = <1>; + #size-cells = <0>; - led@0 { - reg = <0>; - default-brightness = <150>; - ti,linear-mapping-mode; - }; + led@0 { + reg = <0>; + default-brightness = <150>; + ti,linear-mapping-mode; + }; - led@1 { - reg = <1>; - default-brightness = <225>; - ti,linear-mapping-mode; - }; + led@1 { + reg = <1>; + default-brightness = <225>; + ti,linear-mapping-mode; + }; }; };
diff --git a/Documentation/devicetree/bindings/leds/backlight/lp855x-backlight.yaml b/Documentation/devicetree/bindings/leds/backlight/lp855x-backlight.yaml
index 9416e1bfab92..2215ee1b2e5b 100644
--- a/Documentation/devicetree/bindings/leds/backlight/lp855x-backlight.yaml
+++ b/Documentation/devicetree/bindings/leds/backlight/lp855x-backlight.yaml@@ -95,20 +95,20 @@ examples: /* 4V OV, 4 output LED0 string enabled */ rom-14h { - rom-addr = /bits/ 8 <0x14>; - rom-val = /bits/ 8 <0xcf>; + rom-addr = /bits/ 8 <0x14>; + rom-val = /bits/ 8 <0xcf>; }; /* Heavy smoothing, 24ms ramp time step */ rom-15h { - rom-addr = /bits/ 8 <0x15>; - rom-val = /bits/ 8 <0xc7>; + rom-addr = /bits/ 8 <0x15>; + rom-val = /bits/ 8 <0xc7>; }; /* 4 output LED1 string enabled */ rom-19h { - rom-addr = /bits/ 8 <0x19>; - rom-val = /bits/ 8 <0x0f>; + rom-addr = /bits/ 8 <0x19>; + rom-val = /bits/ 8 <0x0f>; }; }; };
@@ -125,7 +125,7 @@ examples: dev-ctrl = /bits/ 8 <0x85>; init-brt = /bits/ 8 <0x10>; }; - }; + }; - | i2c { #address-cells = <1>;
@@ -142,8 +142,8 @@ examples: /* 4V OV, 4 output LED string enabled */ rom-14h { - rom-addr = /bits/ 8 <0x14>; - rom-val = /bits/ 8 <0xcf>; + rom-addr = /bits/ 8 <0x14>; + rom-val = /bits/ 8 <0xcf>; }; }; };
diff --git a/Documentation/devicetree/bindings/leds/backlight/qcom-wled.yaml b/Documentation/devicetree/bindings/leds/backlight/qcom-wled.yaml
index a54448cfdb38..bca00b774bb0 100644
--- a/Documentation/devicetree/bindings/leds/backlight/qcom-wled.yaml
+++ b/Documentation/devicetree/bindings/leds/backlight/qcom-wled.yaml@@ -280,4 +280,4 @@ examples: qcom,ovp = <29>; qcom,num-strings = <2>; qcom,enabled-strings = <0 1>; - }; + };
diff --git a/Documentation/devicetree/bindings/leds/leds-consumer.yaml b/Documentation/devicetree/bindings/leds/leds-consumer.yaml
index fe6a0faa1d3b..b4065c9733a5 100644
--- a/Documentation/devicetree/bindings/leds/leds-consumer.yaml
+++ b/Documentation/devicetree/bindings/leds/leds-consumer.yaml@@ -53,15 +53,15 @@ examples: }; i2c { - #address-cells = <1>; - #size-cells = <0>; + #address-cells = <1>; + #size-cells = <0>; - v4l2_node: camera@36 { - reg = <0x36>; + v4l2_node: camera@36 { + reg = <0x36>; - leds = <&privacy_led>; - led-names = "privacy"; - }; + leds = <&privacy_led>; + led-names = "privacy"; + }; }; ...
diff --git a/Documentation/devicetree/bindings/leds/leds-lp50xx.yaml b/Documentation/devicetree/bindings/leds/leds-lp50xx.yaml
index 23f809906ba7..85182ad7ad09 100644
--- a/Documentation/devicetree/bindings/leds/leds-lp50xx.yaml
+++ b/Documentation/devicetree/bindings/leds/leds-lp50xx.yaml@@ -121,18 +121,18 @@ examples: function = LED_FUNCTION_CHARGING; led@0 { - reg = <0x0>; - color = <LED_COLOR_ID_RED>; + reg = <0x0>; + color = <LED_COLOR_ID_RED>; }; led@1 { - reg = <0x1>; - color = <LED_COLOR_ID_GREEN>; + reg = <0x1>; + color = <LED_COLOR_ID_GREEN>; }; led@2 { - reg = <0x2>; - color = <LED_COLOR_ID_BLUE>; + reg = <0x2>; + color = <LED_COLOR_ID_BLUE>; }; };
diff --git a/Documentation/devicetree/bindings/leds/leds-lp5860.yaml b/Documentation/devicetree/bindings/leds/leds-lp5860.yaml
index 0e88c71c2d39..710fec3738ed 100644
--- a/Documentation/devicetree/bindings/leds/leds-lp5860.yaml
+++ b/Documentation/devicetree/bindings/leds/leds-lp5860.yaml@@ -100,18 +100,18 @@ examples: color = <LED_COLOR_ID_RGB>; led@0 { - reg = <0x0>; - color = <LED_COLOR_ID_RED>; + reg = <0x0>; + color = <LED_COLOR_ID_RED>; }; led@1 { - reg = <0x1>; - color = <LED_COLOR_ID_GREEN>; + reg = <0x1>; + color = <LED_COLOR_ID_GREEN>; }; led@2 { - reg = <0x2>; - color = <LED_COLOR_ID_BLUE>; + reg = <0x2>; + color = <LED_COLOR_ID_BLUE>; }; }; };
diff --git a/Documentation/devicetree/bindings/leds/nxp,pca963x.yaml b/Documentation/devicetree/bindings/leds/nxp,pca963x.yaml
index a16ca11f630b..dac316741b9b 100644
--- a/Documentation/devicetree/bindings/leds/nxp,pca963x.yaml
+++ b/Documentation/devicetree/bindings/leds/nxp,pca963x.yaml@@ -164,27 +164,27 @@ examples: #size-cells = <0>; led@0 { - reg = <0>; - color = <LED_COLOR_ID_RED>; - function = LED_FUNCTION_STATUS; + reg = <0>; + color = <LED_COLOR_ID_RED>; + function = LED_FUNCTION_STATUS; }; led@1 { - reg = <1>; - color = <LED_COLOR_ID_GREEN>; - function = LED_FUNCTION_STATUS; + reg = <1>; + color = <LED_COLOR_ID_GREEN>; + function = LED_FUNCTION_STATUS; }; led@2 { - reg = <2>; - color = <LED_COLOR_ID_BLUE>; - function = LED_FUNCTION_STATUS; + reg = <2>; + color = <LED_COLOR_ID_BLUE>; + function = LED_FUNCTION_STATUS; }; led@3 { - reg = <3>; - color = <LED_COLOR_ID_WHITE>; - function = LED_FUNCTION_STATUS; + reg = <3>; + color = <LED_COLOR_ID_WHITE>; + function = LED_FUNCTION_STATUS; }; }; };
--
2.53.0