Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Krzysztof Kozlowski and committed by
Rob Herring
e5ace96f 112d5560

+14 -17
+1 -2
Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml
··· 16 16 17 17 properties: 18 18 compatible: 19 - items: 20 - - const: analogix,anx7625 19 + const: analogix,anx7625 21 20 22 21 reg: 23 22 maxItems: 1
+2 -2
Documentation/devicetree/bindings/display/panel/sharp,lq101r1sx01.yaml
··· 34 34 - items: 35 35 - const: sharp,lq101r1sx03 36 36 - const: sharp,lq101r1sx01 37 - - items: 38 - - const: sharp,lq101r1sx01 37 + - enum: 38 + - sharp,lq101r1sx01 39 39 40 40 reg: true 41 41 power-supply: true
+11 -13
Documentation/devicetree/bindings/display/solomon,ssd1307fb.yaml
··· 14 14 compatible: 15 15 oneOf: 16 16 # 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 23 22 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 31 29 32 30 reg: 33 31 maxItems: 1