Skip to contentSkip to conversation

dt-bindings: Remove redundant 'maxItems'

PATCH In review Rob Herring 4 participants 4 messages Jun 11, 2020 – Jun 26, 2020

Subsystems (7)
lore
Share & tools
lore

Rob Herring

author maintainer
#0 lore raw

PATCH 1/1 dt-bindings: Remove redundant 'maxItems'

There's no need to specify 'maxItems' with the same value as the number of entries in 'items'. A meta-schema update will catch future cases.

---
 Documentation/devicetree/bindings/clock/imx6q-clock.yaml     | 1 -
 Documentation/devicetree/bindings/clock/imx6sl-clock.yaml    | 1 -
 Documentation/devicetree/bindings/clock/imx6sll-clock.yaml   | 1 -
 Documentation/devicetree/bindings/clock/imx6sx-clock.yaml    | 1 -
 Documentation/devicetree/bindings/clock/imx6ul-clock.yaml    | 1 -
 Documentation/devicetree/bindings/pwm/imx-pwm.yaml           | 2 --
 Documentation/devicetree/bindings/usb/nvidia,tegra-xudc.yaml | 2 --
 7 files changed, 9 deletions(-)
Documentation/devicetree/bindings/clock/imx6q-clock.yaml +0 -1
index 429e3b62b965..92a8e545e212 100644
@@ -23,7 +23,6 @@ properties:
     items:
       - description: CCM interrupt request 1
       - description: CCM interrupt request 2
-    maxItems: 2
 
   '#clock-cells':
     const: 1
Documentation/devicetree/bindings/clock/imx6sl-clock.yaml +0 -1
index 135568c46350..c97bf95b4150 100644
@@ -23,7 +23,6 @@ properties:
     items:
       - description: CCM interrupt request 1
       - description: CCM interrupt request 2
-    maxItems: 2
 
   '#clock-cells':
     const: 1
Documentation/devicetree/bindings/clock/imx6sll-clock.yaml +0 -1
index fa55f1ce3e57..de48924be191 100644
@@ -23,7 +23,6 @@ properties:
     items:
       - description: CCM interrupt request 1
       - description: CCM interrupt request 2
-    maxItems: 2
 
   '#clock-cells':
     const: 1
Documentation/devicetree/bindings/clock/imx6sx-clock.yaml +0 -1
index 982d698e8c54..e50cddee43c3 100644
@@ -23,7 +23,6 @@ properties:
     items:
       - description: CCM interrupt request 1
       - description: CCM interrupt request 2
-    maxItems: 2
 
   '#clock-cells':
     const: 1
Documentation/devicetree/bindings/clock/imx6ul-clock.yaml +0 -1
index 3c779eea6394..36ce7667c972 100644
@@ -23,7 +23,6 @@ properties:
     items:
       - description: CCM interrupt request 1
       - description: CCM interrupt request 2
-    maxItems: 2
 
   '#clock-cells':
     const: 1
Documentation/devicetree/bindings/pwm/imx-pwm.yaml +0 -2
index 4b62af27d4b3..01df06777cba 100644
@@ -30,13 +30,11 @@ properties:
     items:
       - description: SoC PWM ipg clock
       - description: SoC PWM per clock
-    maxItems: 2
 
   clock-names:
     items:
       - const: ipg
       - const: per
-    maxItems: 2
 
   interrupts:
     maxItems: 1
Documentation/devicetree/bindings/usb/nvidia,tegra-xudc.yaml +0 -2
index c4ddc0adf101..0073763a30d8 100644
@@ -64,13 +64,11 @@ properties:
      - const: hs_src
 
   power-domains:
-    maxItems: 2
     items:
       - description: XUSBB(device) power-domain
       - description: XUSBA(superspeed) power-domain
 
   power-domain-names:
-    maxItems: 2
     items:
       - const: dev
       - const: ss
Signature · 1 line
2.25.1
maintainer Reviewed-by on v1 1/1
#1 lore raw

Quoting Rob Herring (2020-06-11 12:47:38)

Quoted 12 lines

There's no need to specify 'maxItems' with the same value as the number of entries in 'items'. A meta-schema update will catch future cases.

Quoted 1 line

---

Acked-by on v1 1/1
#2 lore raw
In reply to Rob Herring
Quoted 12 lines · Rob Herring

There's no need to specify 'maxItems' with the same value as the number of entries in 'items'. A meta-schema update will catch future cases.

Quoted 9 lines
---
 Documentation/devicetree/bindings/clock/imx6q-clock.yaml     | 1 -
 Documentation/devicetree/bindings/clock/imx6sl-clock.yaml    | 1 -
 Documentation/devicetree/bindings/clock/imx6sll-clock.yaml   | 1 -
 Documentation/devicetree/bindings/clock/imx6sx-clock.yaml    | 1 -
 Documentation/devicetree/bindings/clock/imx6ul-clock.yaml    | 1 -
 Documentation/devicetree/bindings/pwm/imx-pwm.yaml           | 2 --
 Documentation/devicetree/bindings/usb/nvidia,tegra-xudc.yaml | 2 --
 7 files changed, 9 deletions(-)
Acked-by on v1 1/1
#3 lore raw
In reply to Rob Herring
Quoted 2 lines · Rob Herring

There's no need to specify 'maxItems' with the same value as the number of entries in 'items'. A meta-schema update will catch future cases.

Sounds reasonable,

Signature · 2 lines
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | https://www.pengutronix.de/ |