Commit e5ace96f authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Rob Herring
Browse files

dt-bindings: display: simplify compatibles syntax



Lists (items) with one item should be just const or enum because it is
shorter and simpler.

Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: default avatarNeil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20230414104230.23165-1-krzysztof.kozlowski@linaro.org


Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent 112d5560
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -16,8 +16,7 @@ description: |

properties:
  compatible:
    items:
      - const: analogix,anx7625
    const: analogix,anx7625

  reg:
    maxItems: 1
+2 −2
Original line number Diff line number Diff line
@@ -34,8 +34,8 @@ properties:
      - items:
          - const: sharp,lq101r1sx03
          - const: sharp,lq101r1sx01
      - items:
          - const: sharp,lq101r1sx01
      - enum:
          - sharp,lq101r1sx01

  reg: true
  power-supply: true
+11 −13
Original line number Diff line number Diff line
@@ -14,14 +14,12 @@ properties:
  compatible:
    oneOf:
      # Deprecated compatible strings
      - items:
      - enum:
          - solomon,ssd1305fb-i2c
          - solomon,ssd1306fb-i2c
          - solomon,ssd1307fb-i2c
          - solomon,ssd1309fb-i2c
        deprecated: true
      - items:
      - enum:
          - sinowealth,sh1106
          - solomon,ssd1305