Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: PCI: faraday,ftpci100: Fix 'contains' schema usage

The 'contains' keyword applies to elements within an array, so
using 'items' only makes sense if the elements of the array are another
array which is not the case for 'compatible' properties.

Looking at the driver, it seems the intent was the condition should be
true when 'faraday,ftpci100' is present, so we can drop
'cortina,gemini-pci'.

Fixes: 2720b991337d ("dt-bindings: PCI: ftpci100: convert faraday,ftpci100 to YAML")
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: linux-pci@vger.kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20210817174743.541353-1-robh@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>

+1 -3
+1 -3
Documentation/devicetree/bindings/pci/faraday,ftpci100.yaml
··· 113 113 properties: 114 114 compatible: 115 115 contains: 116 - items: 117 - - const: cortina,gemini-pci 118 - - const: faraday,ftpci100 116 + const: faraday,ftpci100 119 117 then: 120 118 required: 121 119 - interrupt-controller