]> git.baikalelectronics.ru Git - kernel.git/commitdiff
dt-bindings: Drop redundant maxItems/items
authorRob Herring <robh@kernel.org>
Tue, 22 Dec 2020 04:06:45 +0000 (21:06 -0700)
committerRob Herring <robh@kernel.org>
Wed, 23 Dec 2020 01:58:24 +0000 (18:58 -0700)
'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: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Vinod Koul <vkoul@kernel.org>
Acked-by: Jassi Brar <jassisinghbrar@gmail.com>
Acked-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20201222040645.1323611-1-robh@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/display/xlnx/xlnx,zynqmp-dpsub.yaml
Documentation/devicetree/bindings/dma/renesas,rcar-dmac.yaml
Documentation/devicetree/bindings/mailbox/arm,mhu.yaml
Documentation/devicetree/bindings/sound/nvidia,tegra30-hda.yaml
Documentation/devicetree/bindings/usb/renesas,usb-xhci.yaml
Documentation/devicetree/bindings/usb/renesas,usbhs.yaml

index 7b9d468c3e52cd1226fd9cc9197b314c1cc1b250..403d57977ee73077e3d3c99f769b61280241c973 100644 (file)
@@ -98,7 +98,6 @@ properties:
     maxItems: 1
 
   dmas:
-    maxItems: 4
     items:
       - description: Video layer, plane 0 (RGB or luma)
       - description: Video layer, plane 1 (U/V or U)
index b548e4723936ef80b42ff4d40133100ab81f5975..c07eb6f2fc8d2f127c2854f927b9365e8b943f5a 100644 (file)
@@ -73,7 +73,6 @@ properties:
     maxItems: 1
 
   clock-names:
-    maxItems: 1
     items:
       - const: fck
 
index d43791a2dde751a637b5a4dd263940eb1ac43bcc..d07eb00b97c84edc0987b16e2750de2fb29bcb1d 100644 (file)
@@ -61,7 +61,6 @@ properties:
       - description: low-priority non-secure
       - description: high-priority non-secure
       - description: Secure
-    maxItems: 3
 
   clocks:
     maxItems: 1
index e543a6123792c5daf8d1c7c21c24ef1f65a2afde..b55775e21de67278e248cbf54f17fa276ae22ee9 100644 (file)
@@ -44,7 +44,6 @@ properties:
     maxItems: 3
 
   clock-names:
-    maxItems: 3
     items:
       - const: hda
       - const: hda2hdmi
@@ -54,7 +53,6 @@ properties:
     maxItems: 3
 
   reset-names:
-    maxItems: 3
     items:
       - const: hda
       - const: hda2hdmi
index 0f078bd0a3e50c3fb512ce9a512d4687573c4fd3..22603256ddf8f8d852c140f360f5bc8907c0d3f6 100644 (file)
@@ -51,7 +51,6 @@ properties:
     maxItems: 1
 
   phy-names:
-    maxItems: 1
     items:
       - const: usb
 
index 737c1f47b7deb7aa803c60e2ac12f2989850a0b6..54c361d4a7af0805da86d6c944e7770be0c3c1a3 100644 (file)
@@ -74,11 +74,8 @@ properties:
 
   phys:
     maxItems: 1
-    items:
-      - description: phandle + phy specifier pair.
 
   phy-names:
-    maxItems: 1
     items:
       - const: usb