Commit 2b8f061a authored by Rob Herring's avatar Rob Herring

dt-bindings: Drop redundant maxItems/items

'maxItems' equal to the 'items' list length is redundant. 'maxItems' is
preferred for a single entry while greater than 1 should have an 'items'
list.

A meta-schema check for this is pending once these existing cases are
fixed.

Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: dri-devel@lists.freedesktop.org
Cc: dmaengine@vger.kernel.org
Cc: alsa-devel@alsa-project.org
Cc: linux-usb@vger.kernel.org
Acked-by: default avatarSam Ravnborg <sam@ravnborg.org>
Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: default avatarVinod Koul <vkoul@kernel.org>
Acked-by: default avatarJassi Brar <jassisinghbrar@gmail.com>
Acked-by: default avatarMark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20201222040645.1323611-1-robh@kernel.orgSigned-off-by: default avatarRob Herring <robh@kernel.org>
parent 246eedd7
...@@ -98,7 +98,6 @@ properties: ...@@ -98,7 +98,6 @@ properties:
maxItems: 1 maxItems: 1
dmas: dmas:
maxItems: 4
items: items:
- description: Video layer, plane 0 (RGB or luma) - description: Video layer, plane 0 (RGB or luma)
- description: Video layer, plane 1 (U/V or U) - description: Video layer, plane 1 (U/V or U)
......
...@@ -73,7 +73,6 @@ properties: ...@@ -73,7 +73,6 @@ properties:
maxItems: 1 maxItems: 1
clock-names: clock-names:
maxItems: 1
items: items:
- const: fck - const: fck
......
...@@ -61,7 +61,6 @@ properties: ...@@ -61,7 +61,6 @@ properties:
- description: low-priority non-secure - description: low-priority non-secure
- description: high-priority non-secure - description: high-priority non-secure
- description: Secure - description: Secure
maxItems: 3
clocks: clocks:
maxItems: 1 maxItems: 1
......
...@@ -44,7 +44,6 @@ properties: ...@@ -44,7 +44,6 @@ properties:
maxItems: 3 maxItems: 3
clock-names: clock-names:
maxItems: 3
items: items:
- const: hda - const: hda
- const: hda2hdmi - const: hda2hdmi
...@@ -54,7 +53,6 @@ properties: ...@@ -54,7 +53,6 @@ properties:
maxItems: 3 maxItems: 3
reset-names: reset-names:
maxItems: 3
items: items:
- const: hda - const: hda
- const: hda2hdmi - const: hda2hdmi
......
...@@ -51,7 +51,6 @@ properties: ...@@ -51,7 +51,6 @@ properties:
maxItems: 1 maxItems: 1
phy-names: phy-names:
maxItems: 1
items: items:
- const: usb - const: usb
......
...@@ -74,11 +74,8 @@ properties: ...@@ -74,11 +74,8 @@ properties:
phys: phys:
maxItems: 1 maxItems: 1
items:
- description: phandle + phy specifier pair.
phy-names: phy-names:
maxItems: 1
items: items:
- const: usb - const: usb
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment