Skip to contentSkip to conversation

dt-bindings: opp: drop maxItems from inner items

PATCH Applied David Heidelberg 4 participants 4 messages Mar 4, 2024 – Mar 6, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dt-bindings: opp: drop maxItems from inner items

With recent changes within matrix dimensions calculation, dropping maxItems: 1 provides a warning-free run.

Fixes warning such as:
arch/arm64/boot/dts/qcom/sdm845-oneplus-enchilada.dtb: opp-table: opp-200000000:opp-hz:0: [200000000, 0, 0, 150000000, 0, 0, 0, 0, 300000000] is too long

Fixes 3cb16ad69bef ("dt-bindings: opp: accept array of frequencies")

---
follow-up of https://lore.kernel.org/lkml/[email protected]/T/

 Documentation/devicetree/bindings/opp/opp-v2-base.yaml | 2 --
 1 file changed, 2 deletions(-)
Documentation/devicetree/bindings/opp/opp-v2-base.yaml +0 -2
index e2f8f7af3cf4..b1bb87c865ed 100644
@@ -57,8 +57,6 @@ patternProperties:
           specific binding.
         minItems: 1
         maxItems: 32
-        items:
-          maxItems: 1
 
       opp-microvolt:
         description: |
Signature · 1 line
2.43.0
Reviewed-by on v1 1/1
#1 lore raw

Hi,

Quoted 20 lines · David Heidelberg

With recent changes within matrix dimensions calculation, dropping maxItems: 1 provides a warning-free run.

Fixes warning such as:
arch/arm64/boot/dts/qcom/sdm845-oneplus-enchilada.dtb: opp-table: opp-200000000:opp-hz:0: [200000000, 0, 0, 150000000, 0, 0, 0, 0, 300000000] is too long

Fixes 3cb16ad69bef ("dt-bindings: opp: accept array of frequencies")

---
follow-up of https://lore.kernel.org/lkml/[email protected]/T/

  Documentation/devicetree/bindings/opp/opp-v2-base.yaml | 2 --
  1 file changed, 2 deletions(-)
Documentation/devicetree/bindings/opp/opp-v2-base.yaml +0 -0
index e2f8f7af3cf4..b1bb87c865ed 100644

Documentation/devicetree/bindings/opp/opp-v2-base.yaml patternProperties: · line 61

Quoted 5 lines
Documentation/devicetree/bindings/opp/opp-v2-base.yaml +0 -2
@@ -57,8 +57,6 @@ patternProperties:
            specific binding.
          minItems: 1
          maxItems: 32
-        items:
-          maxItems: 1

Thanks for the fix,

Signature · 2 lines
Thanks and Regards,
Dhruva Gole
maintainer Acked-by on v1 1/1
#2 lore raw
In reply to David Heidelberg
Quoted 6 lines · David Heidelberg

With recent changes within matrix dimensions calculation, dropping maxItems: 1 provides a warning-free run.

Fixes warning such as:
arch/arm64/boot/dts/qcom/sdm845-oneplus-enchilada.dtb: opp-table: opp-200000000:opp-hz:0: [200000000, 0, 0, 150000000, 0, 0, 0, 0, 300000000] is too long

Quoted 9 lines
Fixes 3cb16ad69bef ("dt-bindings: opp: accept array of frequencies")

---
follow-up of https://lore.kernel.org/lkml/[email protected]/T/

 Documentation/devicetree/bindings/opp/opp-v2-base.yaml | 2 --
 1 file changed, 2 deletions(-)
Applied
#3 lore raw
In reply to David Heidelberg
Quoted 20 lines · David Heidelberg

With recent changes within matrix dimensions calculation, dropping maxItems: 1 provides a warning-free run.

Fixes warning such as:
arch/arm64/boot/dts/qcom/sdm845-oneplus-enchilada.dtb: opp-table: opp-200000000:opp-hz:0: [200000000, 0, 0, 150000000, 0, 0, 0, 0, 300000000] is too long

Fixes 3cb16ad69bef ("dt-bindings: opp: accept array of frequencies")

---
follow-up of https://lore.kernel.org/lkml/[email protected]/T/

 Documentation/devicetree/bindings/opp/opp-v2-base.yaml | 2 --
 1 file changed, 2 deletions(-)
Documentation/devicetree/bindings/opp/opp-v2-base.yaml +0 -0
index e2f8f7af3cf4..b1bb87c865ed 100644

Documentation/devicetree/bindings/opp/opp-v2-base.yaml patternProperties: · line 62

Quoted 8 lines
Documentation/devicetree/bindings/opp/opp-v2-base.yaml +0 -2
@@ -57,8 +57,6 @@ patternProperties:
           specific binding.
         minItems: 1
         maxItems: 32
-        items:
-          maxItems: 1
 
       opp-microvolt:
         description: |

Applied. Thanks.

Signature · 1 line
viresh