ASoC: Fix warning related to 'sound-name-prefix' binding
authorSameer Pujar <spujar@nvidia.com>
Tue, 21 Sep 2021 15:41:00 +0000 (21:11 +0530)
committerMark Brown <broonie@kernel.org>
Tue, 21 Sep 2021 16:39:11 +0000 (17:39 +0100)
commit 82d3ec1d89fa ("ASoC: Use schema reference for sound-name-prefix")
added name-prefix.yaml schema and the same reference was used in couple
of other schemas. But this is causing following warning and the same is
fixed in current patch.

 Documentation/devicetree/bindings/sound/nxp,tfa989x.example.dt.yaml:
 audio-codec@34: 'sound-name-prefix' does not match any of the regexes:
 'pinctrl-[0-9]+'
  From schema: Documentation/devicetree/bindings/sound/nxp,tfa989x.yaml
 Documentation/devicetree/bindings/sound/nxp,tfa989x.example.dt.yaml:
 audio-codec@36: 'sound-name-prefix' does not match any of the regexes:
 'pinctrl-[0-9]+'
  From schema: Documentation/devicetree/bindings/sound/nxp,tfa989x.yaml

Fixes: 82d3ec1d89fa ("ASoC: Use schema reference for sound-name-prefix")
Reported-by: Rob Herring <robh+dt@kernel.org>
Suggested-by: Rob Herring <robh+dt@kernel.org>
Signed-off-by: Sameer Pujar <spujar@nvidia.com>
Link: https://lore.kernel.org/r/1632238860-16947-1-git-send-email-spujar@nvidia.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/sound/nxp,tfa989x.yaml
Documentation/devicetree/bindings/sound/simple-audio-mux.yaml

index 68e5ad2a2acc8bf925d2fe21cab863a5befa1e9f..7667471be1e4802f789e9283a5cb4dc297981a3b 100644 (file)
@@ -24,6 +24,8 @@ properties:
   '#sound-dai-cells':
     const: 0
 
+  sound-name-prefix: true
+
   vddd-supply:
     description: regulator phandle for the VDDD power supply.
 
index c597d9dfb00144e30cb821ad7f632e8532e410fa..b5fc35ee9b65722323a109e10523ae257f3299e8 100644 (file)
@@ -24,6 +24,8 @@ properties:
     description: |
       GPIOs used to select the input line.
 
+  sound-name-prefix: true
+
 required:
   - compatible
   - mux-gpios