Skip to content

Commit e5ace96

Browse files
krzkrobherring
authored andcommitted
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: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Link: https://lore.kernel.org/r/20230414104230.23165-1-krzysztof.kozlowski@linaro.org Signed-off-by: Rob Herring <robh@kernel.org>
1 parent 112d556 commit e5ace96

3 files changed

Lines changed: 14 additions & 17 deletions

File tree

Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ description: |
1616
1717
properties:
1818
compatible:
19-
items:
20-
- const: analogix,anx7625
19+
const: analogix,anx7625
2120

2221
reg:
2322
maxItems: 1

Documentation/devicetree/bindings/display/panel/sharp,lq101r1sx01.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ properties:
3434
- items:
3535
- const: sharp,lq101r1sx03
3636
- const: sharp,lq101r1sx01
37-
- items:
38-
- const: sharp,lq101r1sx01
37+
- enum:
38+
- sharp,lq101r1sx01
3939

4040
reg: true
4141
power-supply: true

Documentation/devicetree/bindings/display/solomon,ssd1307fb.yaml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,18 @@ properties:
1414
compatible:
1515
oneOf:
1616
# Deprecated compatible strings
17-
- items:
18-
- enum:
19-
- solomon,ssd1305fb-i2c
20-
- solomon,ssd1306fb-i2c
21-
- solomon,ssd1307fb-i2c
22-
- solomon,ssd1309fb-i2c
17+
- enum:
18+
- solomon,ssd1305fb-i2c
19+
- solomon,ssd1306fb-i2c
20+
- solomon,ssd1307fb-i2c
21+
- solomon,ssd1309fb-i2c
2322
deprecated: true
24-
- items:
25-
- enum:
26-
- sinowealth,sh1106
27-
- solomon,ssd1305
28-
- solomon,ssd1306
29-
- solomon,ssd1307
30-
- solomon,ssd1309
23+
- enum:
24+
- sinowealth,sh1106
25+
- solomon,ssd1305
26+
- solomon,ssd1306
27+
- solomon,ssd1307
28+
- solomon,ssd1309
3129

3230
reg:
3331
maxItems: 1

0 commit comments

Comments
 (0)