Skip to content

Commit

Permalink
dt-bindings: PCI: faraday,ftpci100: Fix 'contains' schema usage
Browse files Browse the repository at this point in the history
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: 2720b99 ("dt-bindings: PCI: ftpci100: convert faraday,ftpci100 to YAML")
Cc: Bjorn Helgaas <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: [email protected]
Signed-off-by: Rob Herring <[email protected]>
Reviewed-by: Linus Walleij <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Rob Herring <[email protected]>
  • Loading branch information
robherring committed Aug 18, 2021
1 parent 0a7eb4f commit a083fad
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Documentation/devicetree/bindings/pci/faraday,ftpci100.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,7 @@ if:
properties:
compatible:
contains:
items:
- const: cortina,gemini-pci
- const: faraday,ftpci100
const: faraday,ftpci100
then:
required:
- interrupt-controller
Expand Down

0 comments on commit a083fad

Please sign in to comment.