Skip to content

Commit

Permalink
ASoC: dt-bindings: stm32: Ensure compatible pattern matches whole string
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
robherring authored and broonie committed May 21, 2024
1 parent b195acf commit 737ce4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Documentation/devicetree/bindings/sound/st,stm32-sai.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 737ce4f

Please sign in to comment.