]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ASoC: dt-bindings: stm32: Ensure compatible pattern matches whole string
authorRob Herring (Arm) <robh@kernel.org>
Mon, 20 May 2024 22:27:05 +0000 (17:27 -0500)
committerMark Brown <broonie@kernel.org>
Tue, 21 May 2024 11:35:12 +0000 (12:35 +0100)
The compatible pattern "st,stm32-sai-sub-[ab]" is missing starting and
ending anchors, so any prefix and/or suffix would still be valid.

This also fixes a warning on the example:

Documentation/devicetree/bindings/sound/st,stm32-sai.example.dtb: /example-0/sai@4400b000/audio-controller@4400b004: failed to match any schema with compatible: ['st,stm32-sai-sub-a']

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://msgid.link/r/20240520222705.1742367-1-robh@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/sound/st,stm32-sai.yaml

index 59df8a832310da21acab762924d6a012ea836ee7..f555ccd6b00a9b40947b91dfd5c0fdfadeb99dd9 100644 (file)
@@ -68,7 +68,7 @@ patternProperties:
     properties:
       compatible:
         description: Compatible for SAI sub-block A or B.
-        pattern: "st,stm32-sai-sub-[ab]"
+        pattern: "^st,stm32-sai-sub-[ab]$"
 
       "#sound-dai-cells":
         const: 0