]> git.itanic.dy.fi Git - linux-stable/commitdiff
ASoC: dt-bindings: mt8192-mt6359: Set maxItems, not type, for sound-dai
authorNícolas F. R. A. Prado <nfraprado@collabora.com>
Mon, 24 Oct 2022 23:06:57 +0000 (19:06 -0400)
committerMark Brown <broonie@kernel.org>
Wed, 26 Oct 2022 13:18:30 +0000 (14:18 +0100)
sound-dai is a standard property whose type is already set to
phandle-array by sound-dai.yaml, so there's no need to set it (and
wrongly so for headset-codec) in this binding. What should be set
however is the maximum number of items, which for headset-codec should
be 1.

Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
Acked-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20221024230658.1772907-1-nfraprado@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/sound/mt8192-mt6359-rt1015-rt5682.yaml

index 478be7e3fa296ab6281806b161820d4021dac6ed..c6e614c1c30b94b43f4fcc666042b7349ce3e0a7 100644 (file)
@@ -34,7 +34,7 @@ properties:
 
     properties:
       sound-dai:
-        $ref: /schemas/types.yaml#/definitions/phandle
+        maxItems: 1
     required:
       - sound-dai
 
@@ -48,7 +48,6 @@ properties:
         maxItems: 2
         items:
           maxItems: 1
-        $ref: /schemas/types.yaml#/definitions/phandle-array
     required:
       - sound-dai