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

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.orgSigned-off-by: default avatarRob Herring <robh@kernel.org>
parent 112d5560
...@@ -16,8 +16,7 @@ description: | ...@@ -16,8 +16,7 @@ description: |
properties: properties:
compatible: compatible:
items: const: analogix,anx7625
- const: analogix,anx7625
reg: reg:
maxItems: 1 maxItems: 1
......
...@@ -34,8 +34,8 @@ properties: ...@@ -34,8 +34,8 @@ properties:
- items: - items:
- const: sharp,lq101r1sx03 - const: sharp,lq101r1sx03
- const: sharp,lq101r1sx01 - const: sharp,lq101r1sx01
- items: - enum:
- const: sharp,lq101r1sx01 - sharp,lq101r1sx01
reg: true reg: true
power-supply: true power-supply: true
......
...@@ -14,20 +14,18 @@ properties: ...@@ -14,20 +14,18 @@ properties:
compatible: compatible:
oneOf: oneOf:
# Deprecated compatible strings # Deprecated compatible strings
- items: - enum:
- enum: - solomon,ssd1305fb-i2c
- solomon,ssd1305fb-i2c - solomon,ssd1306fb-i2c
- solomon,ssd1306fb-i2c - solomon,ssd1307fb-i2c
- solomon,ssd1307fb-i2c - solomon,ssd1309fb-i2c
- solomon,ssd1309fb-i2c
deprecated: true deprecated: true
- items: - enum:
- enum: - sinowealth,sh1106
- sinowealth,sh1106 - solomon,ssd1305
- solomon,ssd1305 - solomon,ssd1306
- solomon,ssd1306 - solomon,ssd1307
- solomon,ssd1307 - solomon,ssd1309
- solomon,ssd1309
reg: reg:
maxItems: 1 maxItems: 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment