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 <[email protected]> Reviewed-by: Pratyush Yadav <[email protected]> Reviewed-by: Dhruva Gole <[email protected]> Signed-off-by: Miquel Raynal <[email protected]> Link: https://lore.kernel.org/linux-mtd/[email protected]
1 parent a30144c commit c705e63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)