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

dt-bindings: More use 'enum' instead of 'oneOf' plus 'const' entries

'enum' is equivalent to 'oneOf' with a list of 'const' entries, but 'enum'
is more concise and yields better error messages.

Fix a couple more cases which have appeared.

Cc: Rob Clark <robdclark@gmail.com>
Cc: Sean Paul <sean@poorly.run>
Cc: Mark Brown <broonie@kernel.org>
Cc: Wim Van Sebroeck <wim@linux-watchdog.org>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: Jonathan Marek <jonathan@marek.ca>
Cc: Aswath Govindraju <a-govindraju@ti.com>
Cc: Marc Zyngier <maz@kernel.org>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: dri-devel@lists.freedesktop.org
Cc: freedreno@lists.freedesktop.org
Cc: linux-spi@vger.kernel.org
Cc: linux-watchdog@vger.kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20210910165153.2843871-1-robh@kernel.org

+14 -14
+4 -4
Documentation/devicetree/bindings/display/msm/dsi-phy-7nm.yaml
··· 14 14 15 15 properties: 16 16 compatible: 17 - oneOf: 18 - - const: qcom,dsi-phy-7nm 19 - - const: qcom,dsi-phy-7nm-8150 20 - - const: qcom,sc7280-dsi-phy-7nm 17 + enum: 18 + - qcom,dsi-phy-7nm 19 + - qcom,dsi-phy-7nm-8150 20 + - qcom,sc7280-dsi-phy-7nm 21 21 22 22 reg: 23 23 items:
+3 -3
Documentation/devicetree/bindings/spi/omap-spi.yaml
··· 84 84 if: 85 85 properties: 86 86 compatible: 87 - oneOf: 88 - - const: ti,omap2-mcspi 89 - - const: ti,omap4-mcspi 87 + enum: 88 + - ti,omap2-mcspi 89 + - ti,omap4-mcspi 90 90 91 91 then: 92 92 properties:
+7 -7
Documentation/devicetree/bindings/watchdog/maxim,max63xx.yaml
··· 15 15 16 16 properties: 17 17 compatible: 18 - oneOf: 19 - - const: maxim,max6369 20 - - const: maxim,max6370 21 - - const: maxim,max6371 22 - - const: maxim,max6372 23 - - const: maxim,max6373 24 - - const: maxim,max6374 18 + enum: 19 + - maxim,max6369 20 + - maxim,max6370 21 + - maxim,max6371 22 + - maxim,max6372 23 + - maxim,max6373 24 + - maxim,max6374 25 25 26 26 reg: 27 27 description: This is a 1-byte memory-mapped address