Skip to content

Commit 737ce4f

Browse files
robherringbroonie
authored andcommitted
ASoC: dt-bindings: stm32: Ensure compatible pattern matches whole string
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) <[email protected]> Link: https://msgid.link/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent b195acf commit 737ce4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Documentation/devicetree/bindings/sound/st,stm32-sai.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ patternProperties:
6868
properties:
6969
compatible:
7070
description: Compatible for SAI sub-block A or B.
71-
pattern: "st,stm32-sai-sub-[ab]"
71+
pattern: "^st,stm32-sai-sub-[ab]$"
7272

7373
"#sound-dai-cells":
7474
const: 0

0 commit comments

Comments
 (0)