Skip to content

Commit 2034fe6

Browse files
krzkdtor
authored andcommitted
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>
1 parent 9995b98 commit 2034fe6

File tree

3 files changed

+57
-57
lines changed

3 files changed

+57
-57
lines changed

Documentation/devicetree/bindings/input/qcom,pm8921-keypad.yaml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -62,28 +62,28 @@ unevaluatedProperties: false
6262

6363
examples:
6464
- |
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>;
7070
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+
};
8989
...

Documentation/devicetree/bindings/input/qcom,pm8921-pwrkey.yaml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -52,24 +52,24 @@ unevaluatedProperties: false
5252

5353
examples:
5454
- |
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>;
5959
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>;
6464
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+
};
7575
...

Documentation/devicetree/bindings/input/touchscreen/ti,ads7843.yaml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -164,20 +164,20 @@ examples:
164164
#size-cells = <0>;
165165
166166
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;
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-
};
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+
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+
};
183183
};

0 commit comments

Comments
 (0)