Skip to content

Commit 54a425b

Browse files
krzklag-linaro
authored andcommitted
dt-bindings: mfd: 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. While re-indenting, drop unused labels. 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> Link: https://lore.kernel.org/r/20250501145125.59952-4-krzysztof.kozlowski@linaro.org Signed-off-by: Lee Jones <lee@kernel.org>
1 parent f9a9ad9 commit 54a425b

File tree

4 files changed

+224
-224
lines changed

4 files changed

+224
-224
lines changed

Documentation/devicetree/bindings/mfd/iqs62x.yaml

Lines changed: 86 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -60,34 +60,34 @@ examples:
6060
#include <dt-bindings/interrupt-controller/irq.h>
6161
6262
i2c {
63-
#address-cells = <1>;
64-
#size-cells = <0>;
65-
66-
iqs620a@44 {
67-
compatible = "azoteq,iqs620a";
68-
reg = <0x44>;
69-
interrupt-parent = <&gpio>;
70-
interrupts = <17 IRQ_TYPE_LEVEL_LOW>;
71-
72-
keys {
73-
compatible = "azoteq,iqs620a-keys";
74-
75-
linux,keycodes = <KEY_SELECT>,
76-
<KEY_MENU>,
77-
<KEY_OK>,
78-
<KEY_MENU>;
79-
80-
hall-switch-south {
81-
linux,code = <SW_LID>;
82-
azoteq,use-prox;
83-
};
84-
};
85-
86-
iqs620a_pwm: pwm {
87-
compatible = "azoteq,iqs620a-pwm";
88-
#pwm-cells = <2>;
89-
};
63+
#address-cells = <1>;
64+
#size-cells = <0>;
65+
66+
iqs620a@44 {
67+
compatible = "azoteq,iqs620a";
68+
reg = <0x44>;
69+
interrupt-parent = <&gpio>;
70+
interrupts = <17 IRQ_TYPE_LEVEL_LOW>;
71+
72+
keys {
73+
compatible = "azoteq,iqs620a-keys";
74+
75+
linux,keycodes = <KEY_SELECT>,
76+
<KEY_MENU>,
77+
<KEY_OK>,
78+
<KEY_MENU>;
79+
80+
hall-switch-south {
81+
linux,code = <SW_LID>;
82+
azoteq,use-prox;
83+
};
9084
};
85+
86+
iqs620a_pwm: pwm {
87+
compatible = "azoteq,iqs620a-pwm";
88+
#pwm-cells = <2>;
89+
};
90+
};
9191
};
9292
9393
- |
@@ -96,37 +96,37 @@ examples:
9696
#include <dt-bindings/interrupt-controller/irq.h>
9797
9898
i2c {
99-
#address-cells = <1>;
100-
#size-cells = <0>;
101-
102-
iqs620a@44 {
103-
compatible = "azoteq,iqs620a";
104-
reg = <0x44>;
105-
interrupt-parent = <&gpio>;
106-
interrupts = <17 IRQ_TYPE_LEVEL_LOW>;
107-
108-
firmware-name = "iqs620a_coil.bin";
109-
110-
keys {
111-
compatible = "azoteq,iqs620a-keys";
112-
113-
linux,keycodes = <0>,
114-
<0>,
115-
<0>,
116-
<0>,
117-
<0>,
118-
<0>,
119-
<KEY_MUTE>;
120-
121-
hall-switch-north {
122-
linux,code = <SW_DOCK>;
123-
};
124-
125-
hall-switch-south {
126-
linux,code = <SW_TABLET_MODE>;
127-
};
128-
};
99+
#address-cells = <1>;
100+
#size-cells = <0>;
101+
102+
iqs620a@44 {
103+
compatible = "azoteq,iqs620a";
104+
reg = <0x44>;
105+
interrupt-parent = <&gpio>;
106+
interrupts = <17 IRQ_TYPE_LEVEL_LOW>;
107+
108+
firmware-name = "iqs620a_coil.bin";
109+
110+
keys {
111+
compatible = "azoteq,iqs620a-keys";
112+
113+
linux,keycodes = <0>,
114+
<0>,
115+
<0>,
116+
<0>,
117+
<0>,
118+
<0>,
119+
<KEY_MUTE>;
120+
121+
hall-switch-north {
122+
linux,code = <SW_DOCK>;
123+
};
124+
125+
hall-switch-south {
126+
linux,code = <SW_TABLET_MODE>;
127+
};
129128
};
129+
};
130130
};
131131
132132
- |
@@ -135,36 +135,36 @@ examples:
135135
#include <dt-bindings/interrupt-controller/irq.h>
136136
137137
i2c {
138-
#address-cells = <1>;
139-
#size-cells = <0>;
140-
141-
iqs624@44 {
142-
compatible = "azoteq,iqs624";
143-
reg = <0x44>;
144-
interrupt-parent = <&gpio>;
145-
interrupts = <17 IRQ_TYPE_LEVEL_LOW>;
146-
147-
keys {
148-
compatible = "azoteq,iqs624-keys";
149-
150-
linux,keycodes = <BTN_0>,
151-
<0>,
152-
<BTN_1>,
153-
<0>,
154-
<0>,
155-
<0>,
156-
<0>,
157-
<0>,
158-
<0>,
159-
<0>,
160-
<0>,
161-
<0>,
162-
<0>,
163-
<0>,
164-
<KEY_VOLUMEUP>,
165-
<KEY_VOLUMEDOWN>;
166-
};
138+
#address-cells = <1>;
139+
#size-cells = <0>;
140+
141+
iqs624@44 {
142+
compatible = "azoteq,iqs624";
143+
reg = <0x44>;
144+
interrupt-parent = <&gpio>;
145+
interrupts = <17 IRQ_TYPE_LEVEL_LOW>;
146+
147+
keys {
148+
compatible = "azoteq,iqs624-keys";
149+
150+
linux,keycodes = <BTN_0>,
151+
<0>,
152+
<BTN_1>,
153+
<0>,
154+
<0>,
155+
<0>,
156+
<0>,
157+
<0>,
158+
<0>,
159+
<0>,
160+
<0>,
161+
<0>,
162+
<0>,
163+
<0>,
164+
<KEY_VOLUMEUP>,
165+
<KEY_VOLUMEDOWN>;
167166
};
167+
};
168168
};
169169
170170
...

Documentation/devicetree/bindings/mfd/netronix,ntxec.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,18 @@ examples:
4848
- |
4949
#include <dt-bindings/interrupt-controller/irq.h>
5050
i2c {
51-
#address-cells = <1>;
52-
#size-cells = <0>;
51+
#address-cells = <1>;
52+
#size-cells = <0>;
5353
54-
ec: embedded-controller@43 {
55-
pinctrl-names = "default";
56-
pinctrl-0 = <&pinctrl_ntxec>;
54+
ec: embedded-controller@43 {
55+
pinctrl-names = "default";
56+
pinctrl-0 = <&pinctrl_ntxec>;
5757
58-
compatible = "netronix,ntxec";
59-
reg = <0x43>;
60-
system-power-controller;
61-
interrupt-parent = <&gpio4>;
62-
interrupts = <11 IRQ_TYPE_EDGE_FALLING>;
63-
#pwm-cells = <2>;
64-
};
58+
compatible = "netronix,ntxec";
59+
reg = <0x43>;
60+
system-power-controller;
61+
interrupt-parent = <&gpio4>;
62+
interrupts = <11 IRQ_TYPE_EDGE_FALLING>;
63+
#pwm-cells = <2>;
64+
};
6565
};

Documentation/devicetree/bindings/mfd/rohm,bd9571mwv.yaml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -99,29 +99,29 @@ examples:
9999
#include <dt-bindings/interrupt-controller/irq.h>
100100
101101
i2c {
102-
#address-cells = <1>;
103-
#size-cells = <0>;
104-
105-
pmic: pmic@30 {
106-
compatible = "rohm,bd9571mwv";
107-
reg = <0x30>;
108-
interrupt-parent = <&gpio2>;
109-
interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
110-
interrupt-controller;
111-
#interrupt-cells = <2>;
112-
gpio-controller;
113-
#gpio-cells = <2>;
114-
rohm,ddr-backup-power = <0xf>;
115-
rohm,rstbmode-pulse;
116-
117-
regulators {
118-
dvfs: dvfs {
119-
regulator-name = "dvfs";
120-
regulator-min-microvolt = <750000>;
121-
regulator-max-microvolt = <1030000>;
122-
regulator-boot-on;
123-
regulator-always-on;
124-
};
125-
};
126-
};
102+
#address-cells = <1>;
103+
#size-cells = <0>;
104+
105+
pmic: pmic@30 {
106+
compatible = "rohm,bd9571mwv";
107+
reg = <0x30>;
108+
interrupt-parent = <&gpio2>;
109+
interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
110+
interrupt-controller;
111+
#interrupt-cells = <2>;
112+
gpio-controller;
113+
#gpio-cells = <2>;
114+
rohm,ddr-backup-power = <0xf>;
115+
rohm,rstbmode-pulse;
116+
117+
regulators {
118+
dvfs: dvfs {
119+
regulator-name = "dvfs";
120+
regulator-min-microvolt = <750000>;
121+
regulator-max-microvolt = <1030000>;
122+
regulator-boot-on;
123+
regulator-always-on;
124+
};
125+
};
126+
};
127127
};

0 commit comments

Comments
 (0)