Re: [PATCH] dt-bindings: Drop redundant minItems/maxItems
From: Vinod Koul <vkoul@kernel.org>
Date: 2021-06-16 10:35:35
Also in:
alsa-devel, dmaengine, dri-devel, linux-can, linux-clk, linux-devicetree, linux-gpio, linux-i2c, linux-ide, linux-iio, linux-iommu, linux-media, linux-mmc, linux-pci, linux-phy, linux-pm, linux-pwm, linux-remoteproc, linux-riscv, linux-rtc, linux-serial, linux-spi, linux-usb, linux-watchdog, lkml, netdev
On 15-06-21, 13:15, Rob Herring wrote:
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.
This condition is partially checked with the meta-schema already, but
only if both 'minItems' and 'maxItems' are equal to the 'items' length.
An improved meta-schema is pending.
.../devicetree/bindings/dma/renesas,rcar-dmac.yaml | 1 -
Documentation/devicetree/bindings/phy/brcm,sata-phy.yaml | 1 -
Documentation/devicetree/bindings/phy/mediatek,tphy.yaml | 2 --
.../devicetree/bindings/phy/phy-cadence-sierra.yaml | 2 --
.../devicetree/bindings/phy/phy-cadence-torrent.yaml | 4 ----
.../devicetree/bindings/phy/qcom,ipq806x-usb-phy-hs.yaml | 1 -
.../devicetree/bindings/phy/qcom,ipq806x-usb-phy-ss.yaml | 1 -
Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml | 1 -
Documentation/devicetree/bindings/phy/qcom,qusb2-phy.yaml | 2 --
Documentation/devicetree/bindings/phy/renesas,usb2-phy.yaml | 2 --
Documentation/devicetree/bindings/phy/renesas,usb3-phy.yaml | 1 -
Acked-By: Vinod Koul <vkoul@kernel.org>
--
~Vinod