ASoC: dt-bindings: aries-wm8994: Match compatibles with enum
authorKrzysztof Kozlowski <krzk@kernel.org>
Wed, 2 Sep 2020 16:00:25 +0000 (18:00 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 17 Sep 2020 16:40:05 +0000 (17:40 +0100)
The common pattern for enumerating compatibles is enum, not oneOf.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20200902160025.20922-1-krzk@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/sound/samsung,aries-wm8994.yaml

index 902a0b66628e6226e3b09de8ddebf5ea99af25aa..1c6947294825ecc2bbfbc09a2e194fbc9c021996 100644 (file)
@@ -11,12 +11,11 @@ maintainers:
 
 properties:
   compatible:
-    oneOf:
-      - const: samsung,aries-wm8994
-        description: With FM radio and modem master
-
-      - const: samsung,fascinate4g-wm8994
-        description: Without FM radio and modem slave
+    enum:
+      # With FM radio and modem master
+      - samsung,aries-wm8994
+      # Without FM radio and modem slave
+      - samsung,fascinate4g-wm8994
 
   model:
     $ref: /schemas/types.yaml#/definitions/string