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

dt-bindings: input: Correct indentation and style in DTS example

DTS example in the bindings should be indented with 2- or 4-spaces and
aligned with opening '- |', so correct any differences like 3-spaces or
mixtures 2- and 4-spaces in one binding.

No functional changes here, but saves some comments during reviews of
new patches built on existing code.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://lore.kernel.org/r/20250107125844.226466-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Krzysztof Kozlowski and committed by
Dmitry Torokhov
2034fe66 9995b98a

+56 -56
+23 -23
Documentation/devicetree/bindings/input/qcom,pm8921-keypad.yaml
··· 62 62 63 63 examples: 64 64 - | 65 - #include <dt-bindings/input/input.h> 66 - #include <dt-bindings/interrupt-controller/irq.h> 67 - pmic { 68 - #address-cells = <1>; 69 - #size-cells = <0>; 65 + #include <dt-bindings/input/input.h> 66 + #include <dt-bindings/interrupt-controller/irq.h> 67 + pmic { 68 + #address-cells = <1>; 69 + #size-cells = <0>; 70 70 71 - keypad@148 { 72 - compatible = "qcom,pm8921-keypad"; 73 - reg = <0x148>; 74 - interrupt-parent = <&pmicintc>; 75 - interrupts = <74 IRQ_TYPE_EDGE_RISING>, <75 IRQ_TYPE_EDGE_RISING>; 76 - linux,keymap = < 77 - MATRIX_KEY(0, 0, KEY_VOLUMEUP) 78 - MATRIX_KEY(0, 1, KEY_VOLUMEDOWN) 79 - MATRIX_KEY(0, 2, KEY_CAMERA_FOCUS) 80 - MATRIX_KEY(0, 3, KEY_CAMERA) 81 - >; 82 - keypad,num-rows = <1>; 83 - keypad,num-columns = <5>; 84 - debounce = <15>; 85 - scan-delay = <32>; 86 - row-hold = <91500>; 87 - }; 88 - }; 71 + keypad@148 { 72 + compatible = "qcom,pm8921-keypad"; 73 + reg = <0x148>; 74 + interrupt-parent = <&pmicintc>; 75 + interrupts = <74 IRQ_TYPE_EDGE_RISING>, <75 IRQ_TYPE_EDGE_RISING>; 76 + linux,keymap = < 77 + MATRIX_KEY(0, 0, KEY_VOLUMEUP) 78 + MATRIX_KEY(0, 1, KEY_VOLUMEDOWN) 79 + MATRIX_KEY(0, 2, KEY_CAMERA_FOCUS) 80 + MATRIX_KEY(0, 3, KEY_CAMERA) 81 + >; 82 + keypad,num-rows = <1>; 83 + keypad,num-columns = <5>; 84 + debounce = <15>; 85 + scan-delay = <32>; 86 + row-hold = <91500>; 87 + }; 88 + }; 89 89 ...
+18 -18
Documentation/devicetree/bindings/input/qcom,pm8921-pwrkey.yaml
··· 52 52 53 53 examples: 54 54 - | 55 - #include <dt-bindings/interrupt-controller/irq.h> 56 - ssbi { 57 - #address-cells = <1>; 58 - #size-cells = <0>; 55 + #include <dt-bindings/interrupt-controller/irq.h> 56 + ssbi { 57 + #address-cells = <1>; 58 + #size-cells = <0>; 59 59 60 - pmic@0 { 61 - reg = <0x0>; 62 - #address-cells = <1>; 63 - #size-cells = <0>; 60 + pmic@0 { 61 + reg = <0x0>; 62 + #address-cells = <1>; 63 + #size-cells = <0>; 64 64 65 - pwrkey@1c { 66 - compatible = "qcom,pm8921-pwrkey"; 67 - reg = <0x1c>; 68 - interrupt-parent = <&pmicint>; 69 - interrupts = <50 IRQ_TYPE_EDGE_RISING>, <51 IRQ_TYPE_EDGE_RISING>; 70 - debounce = <15625>; 71 - pull-up; 72 - }; 73 - }; 74 - }; 65 + pwrkey@1c { 66 + compatible = "qcom,pm8921-pwrkey"; 67 + reg = <0x1c>; 68 + interrupt-parent = <&pmicint>; 69 + interrupts = <50 IRQ_TYPE_EDGE_RISING>, <51 IRQ_TYPE_EDGE_RISING>; 70 + debounce = <15625>; 71 + pull-up; 72 + }; 73 + }; 74 + }; 75 75 ...
+15 -15
Documentation/devicetree/bindings/input/touchscreen/ti,ads7843.yaml
··· 164 164 #size-cells = <0>; 165 165 166 166 touchscreen@0 { 167 - compatible = "ti,tsc2046"; 168 - reg = <0>; /* CS0 */ 169 - interrupt-parent = <&gpio1>; 170 - interrupts = <8 0>; /* BOOT6 / GPIO 8 */ 171 - pendown-gpio = <&gpio1 8 0>; 172 - spi-max-frequency = <1000000>; 173 - vcc-supply = <&reg_vcc3>; 174 - wakeup-source; 167 + compatible = "ti,tsc2046"; 168 + reg = <0>; /* CS0 */ 169 + interrupt-parent = <&gpio1>; 170 + interrupts = <8 0>; /* BOOT6 / GPIO 8 */ 171 + pendown-gpio = <&gpio1 8 0>; 172 + spi-max-frequency = <1000000>; 173 + vcc-supply = <&reg_vcc3>; 174 + wakeup-source; 175 175 176 - ti,pressure-max = /bits/ 16 <255>; 177 - ti,x-max = /bits/ 16 <8000>; 178 - ti,x-min = /bits/ 16 <0>; 179 - ti,x-plate-ohms = /bits/ 16 <40>; 180 - ti,y-max = /bits/ 16 <4800>; 181 - ti,y-min = /bits/ 16 <0>; 182 - }; 176 + ti,pressure-max = /bits/ 16 <255>; 177 + ti,x-max = /bits/ 16 <8000>; 178 + ti,x-min = /bits/ 16 <0>; 179 + ti,x-plate-ohms = /bits/ 16 <40>; 180 + ti,y-max = /bits/ 16 <4800>; 181 + ti,y-min = /bits/ 16 <0>; 182 + }; 183 183 };