Skip to content

Commit 1e3e2cf

Browse files
krzksre
authored andcommitted
dt-bindings: power: supply: Correct indentation and style in DTS example
DTS example in the bindings should be indented with 2- or 4-spaces and aligned with opening '- |'. Correct mixtures of the style or any other indentations to use preferred 4-spaces. No functional changes here, but saves some comments during reviews of new patches built on the existing code. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Link: https://lore.kernel.org/r/20250318081428.33979-1-krzysztof.kozlowski@linaro.org Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
1 parent ca3d2ea commit 1e3e2cf

File tree

4 files changed

+36
-36
lines changed

4 files changed

+36
-36
lines changed

Documentation/devicetree/bindings/power/supply/bq25980.yaml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -87,28 +87,28 @@ unevaluatedProperties: false
8787
examples:
8888
- |
8989
bat: battery {
90-
compatible = "simple-battery";
91-
constant-charge-current-max-microamp = <4000000>;
92-
constant-charge-voltage-max-microvolt = <8400000>;
93-
precharge-current-microamp = <160000>;
94-
charge-term-current-microamp = <160000>;
90+
compatible = "simple-battery";
91+
constant-charge-current-max-microamp = <4000000>;
92+
constant-charge-voltage-max-microvolt = <8400000>;
93+
precharge-current-microamp = <160000>;
94+
charge-term-current-microamp = <160000>;
9595
};
9696
#include <dt-bindings/gpio/gpio.h>
9797
#include <dt-bindings/interrupt-controller/irq.h>
9898
i2c {
99-
#address-cells = <1>;
100-
#size-cells = <0>;
101-
102-
bq25980: charger@65 {
103-
compatible = "ti,bq25980";
104-
reg = <0x65>;
105-
interrupt-parent = <&gpio1>;
106-
interrupts = <16 IRQ_TYPE_EDGE_FALLING>;
107-
ti,watchdog-timeout-ms = <0>;
108-
ti,sc-ocp-limit-microamp = <2000000>;
109-
ti,sc-ovp-limit-microvolt = <17800000>;
110-
monitored-battery = <&bat>;
111-
};
99+
#address-cells = <1>;
100+
#size-cells = <0>;
101+
102+
bq25980: charger@65 {
103+
compatible = "ti,bq25980";
104+
reg = <0x65>;
105+
interrupt-parent = <&gpio1>;
106+
interrupts = <16 IRQ_TYPE_EDGE_FALLING>;
107+
ti,watchdog-timeout-ms = <0>;
108+
ti,sc-ocp-limit-microamp = <2000000>;
109+
ti,sc-ovp-limit-microvolt = <17800000>;
110+
monitored-battery = <&bat>;
111+
};
112112
};
113113
114114
...

Documentation/devicetree/bindings/power/supply/ingenic,battery.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ examples:
4848
#include <dt-bindings/iio/adc/ingenic,adc.h>
4949
5050
simple_battery: battery {
51-
compatible = "simple-battery";
52-
voltage-min-design-microvolt = <3600000>;
53-
voltage-max-design-microvolt = <4200000>;
51+
compatible = "simple-battery";
52+
voltage-min-design-microvolt = <3600000>;
53+
voltage-max-design-microvolt = <4200000>;
5454
};
5555
5656
ingenic-battery {
57-
compatible = "ingenic,jz4740-battery";
58-
io-channels = <&adc INGENIC_ADC_BATTERY>;
59-
io-channel-names = "battery";
60-
monitored-battery = <&simple_battery>;
57+
compatible = "ingenic,jz4740-battery";
58+
io-channels = <&adc INGENIC_ADC_BATTERY>;
59+
io-channel-names = "battery";
60+
monitored-battery = <&simple_battery>;
6161
};

Documentation/devicetree/bindings/power/supply/ltc4162-l.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ additionalProperties: false
6161
examples:
6262
- |
6363
i2c {
64-
#address-cells = <1>;
65-
#size-cells = <0>;
66-
charger: battery-charger@68 {
67-
compatible = "lltc,ltc4162-l";
68-
reg = <0x68>;
69-
lltc,rsnsb-micro-ohms = <10000>;
70-
lltc,rsnsi-micro-ohms = <16000>;
71-
lltc,cell-count = <2>;
72-
};
64+
#address-cells = <1>;
65+
#size-cells = <0>;
66+
charger: battery-charger@68 {
67+
compatible = "lltc,ltc4162-l";
68+
reg = <0x68>;
69+
lltc,rsnsb-micro-ohms = <10000>;
70+
lltc,rsnsi-micro-ohms = <16000>;
71+
lltc,cell-count = <2>;
72+
};
7373
};

Documentation/devicetree/bindings/power/supply/maxim,max77705.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ examples:
3737
#include <dt-bindings/interrupt-controller/irq.h>
3838
3939
i2c {
40-
#address-cells = <1>;
41-
#size-cells = <0>;
40+
#address-cells = <1>;
41+
#size-cells = <0>;
4242
4343
charger@69 {
4444
compatible = "maxim,max77705-charger";

0 commit comments

Comments
 (0)