diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> | 2023-04-14 10:33:11 +0200 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2023-04-18 18:46:20 -0500 |
commit | 112d5560a0678f5cea0f242ac576eefafed2a9e7 (patch) | |
tree | 74441c04327ec902940e9ddb69044158f93b4e52 /Documentation/devicetree/bindings/display/mediatek/mediatek,rdma.yaml | |
parent | a31a6c2465a368e2c40b8d768aa682b92743f33e (diff) | |
download | lwn-112d5560a0678f5cea0f242ac576eefafed2a9e7.tar.gz lwn-112d5560a0678f5cea0f242ac576eefafed2a9e7.zip |
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: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
Link: https://lore.kernel.org/r/20230414083311.12197-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings/display/mediatek/mediatek,rdma.yaml')
-rw-r--r-- | Documentation/devicetree/bindings/display/mediatek/mediatek,rdma.yaml | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,rdma.yaml b/Documentation/devicetree/bindings/display/mediatek/mediatek,rdma.yaml index 3ade2ece3fed..42059efad45d 100644 --- a/Documentation/devicetree/bindings/display/mediatek/mediatek,rdma.yaml +++ b/Documentation/devicetree/bindings/display/mediatek/mediatek,rdma.yaml @@ -23,14 +23,11 @@ description: | properties: compatible: oneOf: - - items: - - const: mediatek,mt2701-disp-rdma - - items: - - const: mediatek,mt8173-disp-rdma - - items: - - const: mediatek,mt8183-disp-rdma - - items: - - const: mediatek,mt8195-disp-rdma + - enum: + - mediatek,mt2701-disp-rdma + - mediatek,mt8173-disp-rdma + - mediatek,mt8183-disp-rdma + - mediatek,mt8195-disp-rdma - items: - enum: - mediatek,mt8188-disp-rdma |