Commit 46bc0d98 authored by Rex-BC Chen's avatar Rex-BC Chen Committed by Chun-Kuang Hu
Browse files

dt-bindings: display: mediatek: revise enum to const

There won't be more than 1 fallback for these bindings, so we modify
them to use const instead of enum.

Link: https://patchwork.kernel.org/project/linux-mediatek/patch/20220406030009.2357-2-rex-bc.chen@mediatek.com/


Signed-off-by: default avatarRex-BC Chen <rex-bc.chen@mediatek.com>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Reviewed-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: default avatarChun-Kuang Hu <chunkuang.hu@kernel.org>
parent 2c5d69b0
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -29,8 +29,7 @@ properties:
              - mediatek,mt8183-disp-aal
              - mediatek,mt8192-disp-aal
              - mediatek,mt8195-disp-aal
          - enum:
              - mediatek,mt8173-disp-aal
          - const: mediatek,mt8173-disp-aal

  reg:
    maxItems: 1
+1 −2
Original line number Diff line number Diff line
@@ -28,8 +28,7 @@ properties:
      - items:
          - enum:
              - mediatek,mt8195-disp-ccorr
          - enum:
              - mediatek,mt8192-disp-ccorr
          - const: mediatek,mt8192-disp-ccorr

  reg:
    maxItems: 1
+2 −4
Original line number Diff line number Diff line
@@ -32,15 +32,13 @@ properties:
          - enum:
              - mediatek,mt7623-disp-color
              - mediatek,mt2712-disp-color
          - enum:
              - mediatek,mt2701-disp-color
          - const: mediatek,mt2701-disp-color
      - items:
          - enum:
              - mediatek,mt8183-disp-color
              - mediatek,mt8192-disp-color
              - mediatek,mt8195-disp-color
          - enum:
              - mediatek,mt8173-disp-color
          - const: mediatek,mt8173-disp-color
  reg:
    maxItems: 1

+1 −2
Original line number Diff line number Diff line
@@ -28,8 +28,7 @@ properties:
          - enum:
              - mediatek,mt8192-disp-dither
              - mediatek,mt8195-disp-dither
          - enum:
              - mediatek,mt8183-disp-dither
          - const: mediatek,mt8183-disp-dither

  reg:
    maxItems: 1
+1 −2
Original line number Diff line number Diff line
@@ -29,8 +29,7 @@ properties:
          - enum:
              - mediatek,mt8192-disp-gamma
              - mediatek,mt8195-disp-gamma
          - enum:
              - mediatek,mt8183-disp-gamma
          - const: mediatek,mt8183-disp-gamma

  reg:
    maxItems: 1
Loading