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
This commit is contained in:
Rob Herring 2021-09-10 11:51:53 -05:00
parent 4a48b66b3f
commit 9756712418
3 changed files with 14 additions and 14 deletions

View File

@ -14,10 +14,10 @@ allOf:
properties: properties:
compatible: compatible:
oneOf: enum:
- const: qcom,dsi-phy-7nm - qcom,dsi-phy-7nm
- const: qcom,dsi-phy-7nm-8150 - qcom,dsi-phy-7nm-8150
- const: qcom,sc7280-dsi-phy-7nm - qcom,sc7280-dsi-phy-7nm
reg: reg:
items: items:

View File

@ -84,9 +84,9 @@ unevaluatedProperties: false
if: if:
properties: properties:
compatible: compatible:
oneOf: enum:
- const: ti,omap2-mcspi - ti,omap2-mcspi
- const: ti,omap4-mcspi - ti,omap4-mcspi
then: then:
properties: properties:

View File

@ -15,13 +15,13 @@ maintainers:
properties: properties:
compatible: compatible:
oneOf: enum:
- const: maxim,max6369 - maxim,max6369
- const: maxim,max6370 - maxim,max6370
- const: maxim,max6371 - maxim,max6371
- const: maxim,max6372 - maxim,max6372
- const: maxim,max6373 - maxim,max6373
- const: maxim,max6374 - maxim,max6374
reg: reg:
description: This is a 1-byte memory-mapped address description: This is a 1-byte memory-mapped address