Skip to contentSkip to conversation

dt-bindings: touchscreen: trivial-touch: Move allOf: after required:

PATCH Applied Marek Vasut 4 participants 4 messages Mar 12 – Mar 19

Subsystems (4)

v1 of 2 Applied Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dt-bindings: touchscreen: trivial-touch: Move allOf: after required:

Majority of schemas place allOf: after required: . Documentation Documentation/devicetree/bindings/writing-schema.rst also hints at this ordering. Trivially update this schema. No functional change.

---
NOTE: This comes from https://lore.kernel.org/all/20260117-grinning-heavy-crab-11f245@quoll/
where krzk comments "allOf: should be placed after required: block."
---
Cc: Conor Dooley <[email protected]>
Cc: Dmitry Torokhov <[email protected]>
Cc: Frank Li <[email protected]>
Cc: Job Noorman <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 .../bindings/input/touchscreen/trivial-touch.yaml           | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/input/touchscreen/trivial-touch.yaml +3 -3
index 6441d21223caf..6316a8d32f39b 100644
@@ -53,14 +53,14 @@ properties:
 
   wakeup-source: true
 
-allOf:
-  - $ref: touchscreen.yaml
-
 required:
   - compatible
   - reg
   - interrupts
 
+allOf:
+  - $ref: touchscreen.yaml
+
 unevaluatedProperties: false
 
 examples:
Signature · 1 line
2.51.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 1 line · Marek Vasut

Majority of schemas place allOf: after required: . Documentation

Nit: If there special char, suggest use 'allOf:' 'required:'. "Documentation" is reduntant.

Just said "writing-schema.rst hints this order".

Quoted 46 lines

Documentation/devicetree/bindings/writing-schema.rst also hints at this ordering. Trivially update this schema. No functional change.

---
NOTE: This comes from https://lore.kernel.org/all/20260117-grinning-heavy-crab-11f245@quoll/
where krzk comments "allOf: should be placed after required: block."
---
Cc: Conor Dooley <[email protected]>
Cc: Dmitry Torokhov <[email protected]>
Cc: Frank Li <[email protected]>
Cc: Job Noorman <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 .../bindings/input/touchscreen/trivial-touch.yaml           | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/input/touchscreen/trivial-touch.yaml +3 -4
index 6441d21223caf..6316a8d32f39b 100644
@@ -53,14 +53,14 @@ properties:
 
   wakeup-source: true
 
-allOf:
-  - $ref: touchscreen.yaml
-
 required:
   - compatible
   - reg
   - interrupts
 
+allOf:
+  - $ref: touchscreen.yaml
+
 unevaluatedProperties: false
 
 examples:
--

2.51.0

Acked-by on v1 1/1
#2 lore raw
In reply to Marek Vasut
Quoted 8 lines · Marek Vasut

Majority of schemas place allOf: after required: . Documentation Documentation/devicetree/bindings/writing-schema.rst also hints at this ordering. Trivially update this schema. No functional change.

---
NOTE: This comes from https://lore.kernel.org/all/20260117-grinning-heavy-crab-11f245@quoll/
where krzk comments "allOf: should be placed after required: block."

pw-bot: not-applicable

Certainly not expecting a new version for the "nits" provided by Frank.

maintainer Applied
#3 lore raw
In reply to Marek Vasut
Quoted 5 lines · Marek Vasut

Majority of schemas place allOf: after required: . Documentation Documentation/devicetree/bindings/writing-schema.rst also hints at this ordering. Trivially update this schema. No functional change.

Applied, thank you.

Signature · 1 line
Dmitry