Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Krzysztof Kozlowski and committed by
Sebastian Reichel
1e3e2cf2 ca3d2ea5

+35 -35
+17 -17
Documentation/devicetree/bindings/power/supply/bq25980.yaml
··· 87 87 examples: 88 88 - | 89 89 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>; 95 95 }; 96 96 #include <dt-bindings/gpio/gpio.h> 97 97 #include <dt-bindings/interrupt-controller/irq.h> 98 98 i2c { 99 - #address-cells = <1>; 100 - #size-cells = <0>; 99 + #address-cells = <1>; 100 + #size-cells = <0>; 101 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 - }; 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 + }; 112 112 }; 113 113 114 114 ...
+7 -7
Documentation/devicetree/bindings/power/supply/ingenic,battery.yaml
··· 48 48 #include <dt-bindings/iio/adc/ingenic,adc.h> 49 49 50 50 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>; 54 54 }; 55 55 56 56 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>; 61 61 };
+9 -9
Documentation/devicetree/bindings/power/supply/ltc4162-l.yaml
··· 61 61 examples: 62 62 - | 63 63 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 + }; 73 73 };
+2 -2
Documentation/devicetree/bindings/power/supply/maxim,max77705.yaml
··· 37 37 #include <dt-bindings/interrupt-controller/irq.h> 38 38 39 39 i2c { 40 - #address-cells = <1>; 41 - #size-cells = <0>; 40 + #address-cells = <1>; 41 + #size-cells = <0>; 42 42 43 43 charger@69 { 44 44 compatible = "maxim,max77705-charger";