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

dt-bindings: display: mediatek: simplify compatibles syntax



Lists (items) with one item should be just enum because it is shorter,
simpler and does not confuse, if one wants to add new entry with a
fallback.  Convert all of them to enums.  OTOH, leave unused "oneOf"
entries in anticipation of further growth of the entire binding.

Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: default avatarMatthias Brugger <matthias.bgg@gmail.com>
Link: https://lore.kernel.org/r/20230414083311.12197-1-krzysztof.kozlowski@linaro.org


Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent a31a6c24
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -21,10 +21,9 @@ description: |
properties:
  compatible:
    oneOf:
      - items:
          - const: mediatek,mt8183-disp-ccorr
      - items:
          - const: mediatek,mt8192-disp-ccorr
      - enum:
          - mediatek,mt8183-disp-ccorr
          - mediatek,mt8192-disp-ccorr
      - items:
          - enum:
              - mediatek,mt8188-disp-ccorr
+4 −6
Original line number Diff line number Diff line
@@ -22,12 +22,10 @@ description: |
properties:
  compatible:
    oneOf:
      - items:
          - const: mediatek,mt2701-disp-color
      - items:
          - const: mediatek,mt8167-disp-color
      - items:
          - const: mediatek,mt8173-disp-color
      - enum:
          - mediatek,mt2701-disp-color
          - mediatek,mt8167-disp-color
          - mediatek,mt8173-disp-color
      - items:
          - enum:
              - mediatek,mt7623-disp-color
+2 −2
Original line number Diff line number Diff line
@@ -22,8 +22,8 @@ description: |
properties:
  compatible:
    oneOf:
      - items:
          - const: mediatek,mt8183-disp-dither
      - enum:
          - mediatek,mt8183-disp-dither
      - items:
          - enum:
              - mediatek,mt8186-disp-dither
+2 −2
Original line number Diff line number Diff line
@@ -20,8 +20,8 @@ description: |
properties:
  compatible:
    oneOf:
      - items:
          - const: mediatek,mt8195-disp-dsc
      - enum:
          - mediatek,mt8195-disp-dsc

  reg:
    maxItems: 1
+3 −4
Original line number Diff line number Diff line
@@ -21,10 +21,9 @@ description: |
properties:
  compatible:
    oneOf:
      - items:
          - const: mediatek,mt8173-disp-gamma
      - items:
          - const: mediatek,mt8183-disp-gamma
      - enum:
          - mediatek,mt8173-disp-gamma
          - mediatek,mt8183-disp-gamma
      - items:
          - enum:
              - mediatek,mt8186-disp-gamma
Loading