Skip to content

Commit 67006e3

Browse files
committed
dt-bindings: Drop more redundant 'maxItems/minItems'
Another round of removing redundant minItems/maxItems from new schema in the recent merge window. If a property has an 'items' list, then a 'minItems' or 'maxItems' with the same size as the list is redundant and can be dropped. Note that is DT schema specific behavior and not standard json-schema behavior. The tooling will fixup the final schema adding any unspecified minItems/maxItems. Cc: "David S. Miller" <[email protected]> Cc: Jakub Kicinski <[email protected]> Cc: Evgeniy Polyakov <[email protected]> Cc: Marek Vasut <[email protected]> Cc: Joakim Zhang <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Signed-off-by: Rob Herring <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 55442e6 commit 67006e3

File tree

4 files changed

+1
-7
lines changed

4 files changed

+1
-7
lines changed

Documentation/devicetree/bindings/display/bridge/ti,sn65dsi83.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ properties:
5050
data-lanes:
5151
description: array of physical DSI data lane indexes.
5252
minItems: 1
53-
maxItems: 4
5453
items:
5554
- const: 1
5655
- const: 2
@@ -71,7 +70,6 @@ properties:
7170
data-lanes:
7271
description: array of physical DSI data lane indexes.
7372
minItems: 1
74-
maxItems: 4
7573
items:
7674
- const: 1
7775
- const: 2

Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ properties:
2020
- snps,dwcmshc-sdhci
2121

2222
reg:
23-
minItems: 1
24-
items:
25-
- description: Offset and length of the register set for the device
23+
maxItems: 1
2624

2725
interrupts:
2826
maxItems: 1

Documentation/devicetree/bindings/net/nxp,dwmac-imx.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ properties:
3434

3535
clocks:
3636
minItems: 3
37-
maxItems: 5
3837
items:
3938
- description: MAC host clock
4039
- description: MAC apb clock

Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ properties:
4141
- description: builtin MSI controller.
4242

4343
interrupt-names:
44-
minItems: 1
4544
items:
4645
- const: msi
4746

0 commit comments

Comments
 (0)