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

dt-bindings: hwmon: correct indentation and style in examples

Fix mixed indentation to 4-spaces, remove unnecessary suffix from
i2c node name and use lower-case hex. No functional impact.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20230118172237.349111-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>

authored by

Krzysztof Kozlowski and committed by
Guenter Roeck
08be4233 22f0fd20

+96 -96
+6 -6
Documentation/devicetree/bindings/hwmon/adi,adm1177.yaml
··· 52 52 - | 53 53 #include <dt-bindings/gpio/gpio.h> 54 54 #include <dt-bindings/interrupt-controller/irq.h> 55 - i2c0 { 55 + i2c { 56 56 #address-cells = <1>; 57 57 #size-cells = <0>; 58 58 59 59 pwmon@5a { 60 - compatible = "adi,adm1177"; 61 - reg = <0x5a>; 62 - shunt-resistor-micro-ohms = <50000>; /* 50 mOhm */ 63 - adi,shutdown-threshold-microamp = <1059000>; /* 1.059 A */ 64 - adi,vrange-high-enable; 60 + compatible = "adi,adm1177"; 61 + reg = <0x5a>; 62 + shunt-resistor-micro-ohms = <50000>; /* 50 mOhm */ 63 + adi,shutdown-threshold-microamp = <1059000>; /* 1.059 A */ 64 + adi,vrange-high-enable; 65 65 }; 66 66 }; 67 67 ...
+3 -3
Documentation/devicetree/bindings/hwmon/adi,adm1266.yaml
··· 39 39 40 40 examples: 41 41 - | 42 - i2c0 { 42 + i2c { 43 43 #address-cells = <1>; 44 44 #size-cells = <0>; 45 45 46 46 adm1266@40 { 47 - compatible = "adi,adm1266"; 48 - reg = <0x40>; 47 + compatible = "adi,adm1266"; 48 + reg = <0x40>; 49 49 }; 50 50 }; 51 51 ...
+9 -9
Documentation/devicetree/bindings/hwmon/adi,axi-fan-control.yaml
··· 49 49 examples: 50 50 - | 51 51 fpga_axi: fpga-axi { 52 - #address-cells = <0x2>; 53 - #size-cells = <0x1>; 52 + #address-cells = <0x2>; 53 + #size-cells = <0x1>; 54 54 55 - axi_fan_control: axi-fan-control@80000000 { 56 - compatible = "adi,axi-fan-control-1.00.a"; 57 - reg = <0x0 0x80000000 0x10000>; 58 - clocks = <&clk 71>; 59 - interrupts = <0 110 0>; 60 - pulses-per-revolution = <2>; 61 - }; 55 + axi_fan_control: axi-fan-control@80000000 { 56 + compatible = "adi,axi-fan-control-1.00.a"; 57 + reg = <0x0 0x80000000 0x10000>; 58 + clocks = <&clk 71>; 59 + interrupts = <0 110 0>; 60 + pulses-per-revolution = <2>; 61 + }; 62 62 }; 63 63 ...
+9 -9
Documentation/devicetree/bindings/hwmon/adi,ltc2947.yaml
··· 87 87 examples: 88 88 - | 89 89 spi { 90 - #address-cells = <1>; 91 - #size-cells = <0>; 90 + #address-cells = <1>; 91 + #size-cells = <0>; 92 92 93 - ltc2947_spi: ltc2947@0 { 94 - compatible = "adi,ltc2947"; 95 - reg = <0>; 96 - /* accumulation takes place always for energ1/charge1. */ 97 - /* accumulation only on positive current for energy2/charge2. */ 98 - adi,accumulator-ctl-pol = <0 1>; 99 - }; 93 + ltc2947_spi: ltc2947@0 { 94 + compatible = "adi,ltc2947"; 95 + reg = <0>; 96 + /* accumulation takes place always for energ1/charge1. */ 97 + /* accumulation only on positive current for energy2/charge2. */ 98 + adi,accumulator-ctl-pol = <0 1>; 99 + }; 100 100 }; 101 101 ...
+13 -13
Documentation/devicetree/bindings/hwmon/adi,ltc2992.yaml
··· 55 55 56 56 examples: 57 57 - | 58 - i2c1 { 58 + i2c { 59 59 #address-cells = <1>; 60 60 #size-cells = <0>; 61 61 62 62 ltc2992@6f { 63 - #address-cells = <1>; 64 - #size-cells = <0>; 63 + #address-cells = <1>; 64 + #size-cells = <0>; 65 65 66 - compatible = "adi,ltc2992"; 67 - reg = <0x6f>; 66 + compatible = "adi,ltc2992"; 67 + reg = <0x6f>; 68 68 69 - channel@0 { 70 - reg = <0x0>; 71 - shunt-resistor-micro-ohms = <10000>; 72 - }; 69 + channel@0 { 70 + reg = <0x0>; 71 + shunt-resistor-micro-ohms = <10000>; 72 + }; 73 73 74 - channel@1 { 75 - reg = <0x1>; 76 - shunt-resistor-micro-ohms = <10000>; 77 - }; 74 + channel@1 { 75 + reg = <0x1>; 76 + shunt-resistor-micro-ohms = <10000>; 77 + }; 78 78 }; 79 79 }; 80 80 ...
+3 -3
Documentation/devicetree/bindings/hwmon/amd,sbrmi.yaml
··· 41 41 42 42 examples: 43 43 - | 44 - i2c0 { 44 + i2c { 45 45 #address-cells = <1>; 46 46 #size-cells = <0>; 47 47 48 48 sbrmi@3c { 49 - compatible = "amd,sbrmi"; 50 - reg = <0x3c>; 49 + compatible = "amd,sbrmi"; 50 + reg = <0x3c>; 51 51 }; 52 52 }; 53 53 ...
+3 -3
Documentation/devicetree/bindings/hwmon/amd,sbtsi.yaml
··· 42 42 43 43 examples: 44 44 - | 45 - i2c0 { 45 + i2c { 46 46 #address-cells = <1>; 47 47 #size-cells = <0>; 48 48 49 49 sbtsi@4c { 50 - compatible = "amd,sbtsi"; 51 - reg = <0x4c>; 50 + compatible = "amd,sbtsi"; 51 + reg = <0x4c>; 52 52 }; 53 53 }; 54 54 ...
+4 -4
Documentation/devicetree/bindings/hwmon/iio-hwmon.yaml
··· 31 31 32 32 examples: 33 33 - | 34 - iio-hwmon { 35 - compatible = "iio-hwmon"; 36 - io-channels = <&adc 1>, <&adc 2>; 37 - }; 34 + iio-hwmon { 35 + compatible = "iio-hwmon"; 36 + io-channels = <&adc 1>, <&adc 2>; 37 + };
+20 -20
Documentation/devicetree/bindings/hwmon/national,lm90.yaml
··· 198 198 }; 199 199 - | 200 200 i2c { 201 - #address-cells = <1>; 202 - #size-cells = <0>; 203 - 204 - sensor@4c { 205 - compatible = "adi,adt7481"; 206 - reg = <0x4c>; 207 201 #address-cells = <1>; 208 202 #size-cells = <0>; 209 203 210 - channel@0 { 211 - reg = <0x0>; 212 - label = "local"; 213 - }; 204 + sensor@4c { 205 + compatible = "adi,adt7481"; 206 + reg = <0x4c>; 207 + #address-cells = <1>; 208 + #size-cells = <0>; 214 209 215 - channel@1 { 216 - reg = <0x1>; 217 - label = "front"; 218 - temperature-offset-millicelsius = <4000>; 219 - }; 210 + channel@0 { 211 + reg = <0x0>; 212 + label = "local"; 213 + }; 220 214 221 - channel@2 { 222 - reg = <0x2>; 223 - label = "back"; 224 - temperature-offset-millicelsius = <750>; 215 + channel@1 { 216 + reg = <0x1>; 217 + label = "front"; 218 + temperature-offset-millicelsius = <4000>; 219 + }; 220 + 221 + channel@2 { 222 + reg = <0x2>; 223 + label = "back"; 224 + temperature-offset-millicelsius = <750>; 225 + }; 225 226 }; 226 - }; 227 227 };
+1 -1
Documentation/devicetree/bindings/hwmon/ntc-thermistor.yaml
··· 131 131 132 132 examples: 133 133 - | 134 - thermistor0 { 134 + thermistor { 135 135 compatible = "murata,ncp18wb473"; 136 136 io-channels = <&gpadc 0x06>; 137 137 pullup-uv = <1800000>;
+8 -8
Documentation/devicetree/bindings/hwmon/nuvoton,nct7802.yaml
··· 123 123 #size-cells = <0>; 124 124 125 125 channel@0 { /* LTD */ 126 - reg = <0>; 126 + reg = <0>; 127 127 }; 128 128 129 129 channel@1 { /* RTD1 */ 130 - reg = <1>; 131 - sensor-type = "voltage"; 130 + reg = <1>; 131 + sensor-type = "voltage"; 132 132 }; 133 133 134 134 channel@2 { /* RTD2 */ 135 - reg = <2>; 136 - sensor-type = "temperature"; 137 - temperature-mode = "thermal-diode"; 135 + reg = <2>; 136 + sensor-type = "temperature"; 137 + temperature-mode = "thermal-diode"; 138 138 }; 139 139 140 140 channel@3 { /* RTD3 */ 141 - reg = <3>; 142 - sensor-type = "temperature"; 141 + reg = <3>; 142 + sensor-type = "temperature"; 143 143 }; 144 144 }; 145 145 };
+10 -10
Documentation/devicetree/bindings/hwmon/ti,tmp513.yaml
··· 77 77 examples: 78 78 - | 79 79 i2c { 80 - #address-cells = <1>; 81 - #size-cells = <0>; 80 + #address-cells = <1>; 81 + #size-cells = <0>; 82 82 83 - tmp513@5c { 84 - compatible = "ti,tmp513"; 85 - reg = <0x5C>; 86 - shunt-resistor-micro-ohms = <330000>; 87 - ti,bus-range-microvolt = <32000000>; 88 - ti,pga-gain = <8>; 89 - ti,nfactor = <0x1 0xF3 0x00>; 90 - }; 83 + tmp513@5c { 84 + compatible = "ti,tmp513"; 85 + reg = <0x5c>; 86 + shunt-resistor-micro-ohms = <330000>; 87 + ti,bus-range-microvolt = <32000000>; 88 + ti,pga-gain = <8>; 89 + ti,nfactor = <0x1 0xf3 0x00>; 90 + }; 91 91 };
+7 -7
Documentation/devicetree/bindings/hwmon/ti,tps23861.yaml
··· 40 40 examples: 41 41 - | 42 42 i2c { 43 - #address-cells = <1>; 44 - #size-cells = <0>; 43 + #address-cells = <1>; 44 + #size-cells = <0>; 45 45 46 - tps23861@30 { 47 - compatible = "ti,tps23861"; 48 - reg = <0x30>; 49 - shunt-resistor-micro-ohms = <255000>; 50 - }; 46 + tps23861@30 { 47 + compatible = "ti,tps23861"; 48 + reg = <0x30>; 49 + shunt-resistor-micro-ohms = <255000>; 50 + }; 51 51 };