Commit c705e63a authored by Rob Herring's avatar Rob Herring Committed by Miquel Raynal

dt-bindings: mtd: partitions: Fix partition node name pattern

The 'partition' node name pattern is missing start and end anchors, so
anything is allowed before or after the regex pattern. There's no in tree
users needing that, so add anchors to the pattern.
Signed-off-by: default avatarRob Herring <robh@kernel.org>
Reviewed-by: default avatarPratyush Yadav <ptyadav@amazon.de>
Reviewed-by: default avatarDhruva Gole <d-gole@ti.com>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20230120020454.3225796-1-robh@kernel.org
parent a30144c0
......@@ -32,7 +32,7 @@ properties:
enum: [1, 2]
patternProperties:
"partition(-.+|@[0-9a-f]+)":
"^partition(-.+|@[0-9a-f]+)$":
$ref: partition.yaml
required:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment