Skip to contentSkip to conversation

dt-bindings: arm: vexpress-config: Drop ineffective label limits

PATCH Applied Sudeep Holla 2 participants 3 messages Nov 4 – Nov 16

Subsystems (2)
lore
Share & tools
lore

Sudeep Holla

author maintainer
#0 lore raw

PATCH v2 1/1 dt-bindings: arm: vexpress-config: Drop ineffective label limits

The core Devicetree schema defines label as a scalar string. The vexpress-config regulator, amp, temp, power and energy child schemas apply maxItems: 1 to label. This keyword constrains arrays and has no effect on a string value.

Remove these ineffective constraints from the child schemas.

---

v1->v2:
- Mark label as available with maxItems constraint removed.
- Link to v1: https://lore.kernel.org/all/[email protected]

 .../devicetree/bindings/arm/vexpress-config.yaml  | 15 +++++----------
 1 file changed, 5 insertions(+), 10 deletions(-)
Documentation/devicetree/bindings/arm/vexpress-config.yaml +5 -10
index b04e8e052181..70b13df12a4b 100644
@@ -154,8 +154,7 @@ additionalProperties: false
           - const: 2
           - description: device number
 
-      label:
-        maxItems: 1
+      label: true
 
     unevaluatedProperties: false
     required:
@@ -175,8 +174,7 @@ additionalProperties: false
           - const: 3
           - description: device number
 
-      label:
-        maxItems: 1
+      label: true
 
     additionalProperties: false
     required:
@@ -196,8 +194,7 @@ additionalProperties: false
           - const: 4
           - description: device number
 
-      label:
-        maxItems: 1
+      label: true
 
     additionalProperties: false
     required:
@@ -235,8 +232,7 @@ additionalProperties: false
           - const: 12
           - description: device number
 
-      label:
-        maxItems: 1
+      label: true
 
     additionalProperties: false
     required:
@@ -262,8 +258,7 @@ additionalProperties: false
               - const: 13
               - description: second device number
 
-      label:
-        maxItems: 1
+      label: true
 
     additionalProperties: false
     required:
Signature · 1 line
2.43.0
Reviewed-by on v2 1/1
#1 lore raw
Quoted 11 lines · Sudeep Holla

The core Devicetree schema defines label as a scalar string. The vexpress-config regulator, amp, temp, power and energy child schemas apply maxItems: 1 to label. This keyword constrains arrays and has no effect on a string value.

Remove these ineffective constraints from the child schemas.

---

Best regards,
Krzysztof

author maintainer Applied
#2 lore raw
In reply to Sudeep Holla
Quoted 8 lines · Sudeep Holla

The core Devicetree schema defines label as a scalar string. The vexpress-config regulator, amp, temp, power and energy child schemas apply maxItems: 1 to label. This keyword constrains arrays and has no effect on a string value.

Remove these ineffective constraints from the child schemas.

[...]

Applied to sudeep.holla/linux (for-next/vexpress/updates), thanks!

[1/1] dt-bindings: arm: vexpress-config: Drop ineffective label limits

      https://git.kernel.org/sudeep.holla/c/8c2f870460b2
Signature · 2 lines
Regards,
Sudeep