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

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: leds: fix indentation in examples

The examples were mixing 4-space with 2- and 3-space indentations, so
correct them to use 4-space one. No functional change.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220607075247.58048-2-krzysztof.kozlowski@linaro.org

authored by

Krzysztof Kozlowski and committed by
Rob Herring
5b967e8e 3eb229f2

+162 -162
+51 -51
Documentation/devicetree/bindings/leds/leds-lp50xx.yaml
··· 78 78 79 79 examples: 80 80 - | 81 - #include <dt-bindings/gpio/gpio.h> 82 - #include <dt-bindings/leds/common.h> 81 + #include <dt-bindings/gpio/gpio.h> 82 + #include <dt-bindings/leds/common.h> 83 83 84 - i2c { 85 - #address-cells = <1>; 86 - #size-cells = <0>; 84 + i2c { 85 + #address-cells = <1>; 86 + #size-cells = <0>; 87 87 88 - led-controller@14 { 89 - compatible = "ti,lp5009"; 90 - reg = <0x14>; 91 - #address-cells = <1>; 92 - #size-cells = <0>; 93 - enable-gpios = <&gpio1 16>; 94 - 95 - multi-led@1 { 96 - #address-cells = <1>; 97 - #size-cells = <0>; 98 - reg = <0x1>; 99 - color = <LED_COLOR_ID_RGB>; 100 - function = LED_FUNCTION_CHARGING; 101 - 102 - led@0 { 103 - reg = <0x0>; 104 - color = <LED_COLOR_ID_RED>; 105 - }; 106 - 107 - led@1 { 108 - reg = <0x1>; 109 - color = <LED_COLOR_ID_GREEN>; 110 - }; 111 - 112 - led@2 { 113 - reg = <0x2>; 114 - color = <LED_COLOR_ID_BLUE>; 115 - }; 116 - }; 117 - 118 - multi-led@3 { 88 + led-controller@14 { 89 + compatible = "ti,lp5009"; 90 + reg = <0x14>; 119 91 #address-cells = <1>; 120 92 #size-cells = <0>; 121 - reg = <0x3>, <0x4>, <0x5>; 122 - color = <LED_COLOR_ID_RGB>; 123 - function = LED_FUNCTION_STANDBY; 93 + enable-gpios = <&gpio1 16>; 124 94 125 - led@3 { 126 - reg = <0x3>; 127 - color = <LED_COLOR_ID_RED>; 95 + multi-led@1 { 96 + #address-cells = <1>; 97 + #size-cells = <0>; 98 + reg = <0x1>; 99 + color = <LED_COLOR_ID_RGB>; 100 + function = LED_FUNCTION_CHARGING; 101 + 102 + led@0 { 103 + reg = <0x0>; 104 + color = <LED_COLOR_ID_RED>; 105 + }; 106 + 107 + led@1 { 108 + reg = <0x1>; 109 + color = <LED_COLOR_ID_GREEN>; 110 + }; 111 + 112 + led@2 { 113 + reg = <0x2>; 114 + color = <LED_COLOR_ID_BLUE>; 115 + }; 128 116 }; 129 117 130 - led@4 { 131 - reg = <0x4>; 132 - color = <LED_COLOR_ID_GREEN>; 133 - }; 118 + multi-led@3 { 119 + #address-cells = <1>; 120 + #size-cells = <0>; 121 + reg = <0x3>, <0x4>, <0x5>; 122 + color = <LED_COLOR_ID_RGB>; 123 + function = LED_FUNCTION_STANDBY; 134 124 135 - led@5 { 136 - reg = <0x5>; 137 - color = <LED_COLOR_ID_BLUE>; 125 + led@3 { 126 + reg = <0x3>; 127 + color = <LED_COLOR_ID_RED>; 128 + }; 129 + 130 + led@4 { 131 + reg = <0x4>; 132 + color = <LED_COLOR_ID_GREEN>; 133 + }; 134 + 135 + led@5 { 136 + reg = <0x5>; 137 + color = <LED_COLOR_ID_BLUE>; 138 + }; 138 139 }; 139 - }; 140 - }; 140 + }; 141 141 }; 142 142 143 143 ...
+96 -96
Documentation/devicetree/bindings/leds/leds-lp55xx.yaml
··· 108 108 109 109 examples: 110 110 - | 111 - #include <dt-bindings/leds/common.h> 111 + #include <dt-bindings/leds/common.h> 112 112 113 - i2c { 114 - #address-cells = <1>; 115 - #size-cells = <0>; 113 + i2c { 114 + #address-cells = <1>; 115 + #size-cells = <0>; 116 116 117 - led-controller@32 { 118 - #address-cells = <1>; 119 - #size-cells = <0>; 120 - compatible = "ti,lp8501"; 121 - reg = <0x32>; 122 - clock-mode = /bits/ 8 <2>; 123 - pwr-sel = /bits/ 8 <3>; /* D1~9 connected to VOUT */ 117 + led-controller@32 { 118 + #address-cells = <1>; 119 + #size-cells = <0>; 120 + compatible = "ti,lp8501"; 121 + reg = <0x32>; 122 + clock-mode = /bits/ 8 <2>; 123 + pwr-sel = /bits/ 8 <3>; /* D1~9 connected to VOUT */ 124 124 125 - led@0 { 126 - reg = <0>; 127 - chan-name = "d1"; 128 - led-cur = /bits/ 8 <0x14>; 129 - max-cur = /bits/ 8 <0x20>; 130 - }; 125 + led@0 { 126 + reg = <0>; 127 + chan-name = "d1"; 128 + led-cur = /bits/ 8 <0x14>; 129 + max-cur = /bits/ 8 <0x20>; 130 + }; 131 131 132 - led@1 { 133 - reg = <1>; 134 - chan-name = "d2"; 135 - led-cur = /bits/ 8 <0x14>; 136 - max-cur = /bits/ 8 <0x20>; 137 - }; 132 + led@1 { 133 + reg = <1>; 134 + chan-name = "d2"; 135 + led-cur = /bits/ 8 <0x14>; 136 + max-cur = /bits/ 8 <0x20>; 137 + }; 138 138 139 - led@2 { 140 - reg = <2>; 141 - chan-name = "d3"; 142 - led-cur = /bits/ 8 <0x14>; 143 - max-cur = /bits/ 8 <0x20>; 144 - }; 139 + led@2 { 140 + reg = <2>; 141 + chan-name = "d3"; 142 + led-cur = /bits/ 8 <0x14>; 143 + max-cur = /bits/ 8 <0x20>; 144 + }; 145 145 146 - led@3 { 147 - reg = <3>; 148 - chan-name = "d4"; 149 - led-cur = /bits/ 8 <0x14>; 150 - max-cur = /bits/ 8 <0x20>; 151 - }; 146 + led@3 { 147 + reg = <3>; 148 + chan-name = "d4"; 149 + led-cur = /bits/ 8 <0x14>; 150 + max-cur = /bits/ 8 <0x20>; 151 + }; 152 152 153 - led@4 { 154 - reg = <4>; 155 - chan-name = "d5"; 156 - led-cur = /bits/ 8 <0x14>; 157 - max-cur = /bits/ 8 <0x20>; 158 - }; 153 + led@4 { 154 + reg = <4>; 155 + chan-name = "d5"; 156 + led-cur = /bits/ 8 <0x14>; 157 + max-cur = /bits/ 8 <0x20>; 158 + }; 159 159 160 - led@5 { 161 - reg = <5>; 162 - chan-name = "d6"; 163 - led-cur = /bits/ 8 <0x14>; 164 - max-cur = /bits/ 8 <0x20>; 165 - }; 160 + led@5 { 161 + reg = <5>; 162 + chan-name = "d6"; 163 + led-cur = /bits/ 8 <0x14>; 164 + max-cur = /bits/ 8 <0x20>; 165 + }; 166 166 167 - led@6 { 168 - reg = <6>; 169 - chan-name = "d7"; 170 - led-cur = /bits/ 8 <0x14>; 171 - max-cur = /bits/ 8 <0x20>; 172 - }; 167 + led@6 { 168 + reg = <6>; 169 + chan-name = "d7"; 170 + led-cur = /bits/ 8 <0x14>; 171 + max-cur = /bits/ 8 <0x20>; 172 + }; 173 173 174 - led@7 { 175 - reg = <7>; 176 - chan-name = "d8"; 177 - led-cur = /bits/ 8 <0x14>; 178 - max-cur = /bits/ 8 <0x20>; 179 - }; 174 + led@7 { 175 + reg = <7>; 176 + chan-name = "d8"; 177 + led-cur = /bits/ 8 <0x14>; 178 + max-cur = /bits/ 8 <0x20>; 179 + }; 180 180 181 - led@8 { 182 - reg = <8>; 183 - chan-name = "d9"; 184 - led-cur = /bits/ 8 <0x14>; 185 - max-cur = /bits/ 8 <0x20>; 186 - }; 181 + led@8 { 182 + reg = <8>; 183 + chan-name = "d9"; 184 + led-cur = /bits/ 8 <0x14>; 185 + max-cur = /bits/ 8 <0x20>; 186 + }; 187 187 }; 188 188 189 - led-controller@33 { 190 - #address-cells = <1>; 191 - #size-cells = <0>; 192 - compatible = "national,lp5523"; 193 - reg = <0x33>; 194 - clock-mode = /bits/ 8 <0>; 189 + led-controller@33 { 190 + #address-cells = <1>; 191 + #size-cells = <0>; 192 + compatible = "national,lp5523"; 193 + reg = <0x33>; 194 + clock-mode = /bits/ 8 <0>; 195 195 196 - multi-led@2 { 197 - #address-cells = <1>; 198 - #size-cells = <0>; 199 - reg = <0x2>; 200 - color = <LED_COLOR_ID_RGB>; 201 - function = LED_FUNCTION_STANDBY; 202 - linux,default-trigger = "heartbeat"; 196 + multi-led@2 { 197 + #address-cells = <1>; 198 + #size-cells = <0>; 199 + reg = <0x2>; 200 + color = <LED_COLOR_ID_RGB>; 201 + function = LED_FUNCTION_STANDBY; 202 + linux,default-trigger = "heartbeat"; 203 203 204 - led@0 { 205 - led-cur = /bits/ 8 <50>; 206 - max-cur = /bits/ 8 <100>; 207 - reg = <0x0>; 208 - color = <LED_COLOR_ID_GREEN>; 209 - }; 204 + led@0 { 205 + led-cur = /bits/ 8 <50>; 206 + max-cur = /bits/ 8 <100>; 207 + reg = <0x0>; 208 + color = <LED_COLOR_ID_GREEN>; 209 + }; 210 210 211 - led@1 { 212 - led-cur = /bits/ 8 <50>; 213 - max-cur = /bits/ 8 <100>; 214 - reg = <0x1>; 215 - color = <LED_COLOR_ID_BLUE>; 216 - }; 211 + led@1 { 212 + led-cur = /bits/ 8 <50>; 213 + max-cur = /bits/ 8 <100>; 214 + reg = <0x1>; 215 + color = <LED_COLOR_ID_BLUE>; 216 + }; 217 217 218 - led@6 { 219 - led-cur = /bits/ 8 <50>; 220 - max-cur = /bits/ 8 <100>; 221 - reg = <0x6>; 222 - color = <LED_COLOR_ID_RED>; 223 - }; 218 + led@6 { 219 + led-cur = /bits/ 8 <50>; 220 + max-cur = /bits/ 8 <100>; 221 + reg = <0x6>; 222 + color = <LED_COLOR_ID_RED>; 223 + }; 224 224 }; 225 225 }; 226 226 };
+15 -15
Documentation/devicetree/bindings/leds/leds-pwm-multicolor.yaml
··· 55 55 compatible = "pwm-leds-multicolor"; 56 56 57 57 multi-led { 58 - color = <LED_COLOR_ID_RGB>; 59 - function = LED_FUNCTION_INDICATOR; 60 - max-brightness = <65535>; 58 + color = <LED_COLOR_ID_RGB>; 59 + function = LED_FUNCTION_INDICATOR; 60 + max-brightness = <65535>; 61 61 62 - led-red { 63 - pwms = <&pwm1 0 1000000>; 64 - color = <LED_COLOR_ID_RED>; 65 - }; 62 + led-red { 63 + pwms = <&pwm1 0 1000000>; 64 + color = <LED_COLOR_ID_RED>; 65 + }; 66 66 67 - led-green { 68 - pwms = <&pwm2 0 1000000>; 69 - color = <LED_COLOR_ID_GREEN>; 70 - }; 67 + led-green { 68 + pwms = <&pwm2 0 1000000>; 69 + color = <LED_COLOR_ID_GREEN>; 70 + }; 71 71 72 - led-blue { 73 - pwms = <&pwm3 0 1000000>; 74 - color = <LED_COLOR_ID_BLUE>; 75 - }; 72 + led-blue { 73 + pwms = <&pwm3 0 1000000>; 74 + color = <LED_COLOR_ID_BLUE>; 75 + }; 76 76 }; 77 77 }; 78 78