Skip to content

Commit c705e63

Browse files
robherringmiquelraynal
authored andcommitted
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: Rob Herring <robh@kernel.org> Reviewed-by: Pratyush Yadav <ptyadav@amazon.de> Reviewed-by: Dhruva Gole <d-gole@ti.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/20230120020454.3225796-1-robh@kernel.org
1 parent a30144c commit c705e63

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Documentation/devicetree/bindings/mtd/partitions/partitions.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ properties:
3232
enum: [1, 2]
3333

3434
patternProperties:
35-
"partition(-.+|@[0-9a-f]+)":
35+
"^partition(-.+|@[0-9a-f]+)$":
3636
$ref: partition.yaml
3737

3838
required:

0 commit comments

Comments
 (0)