From: Rob Herring Date: Fri, 20 Jan 2023 02:04:53 +0000 (-0600) Subject: dt-bindings: mtd: partitions: Fix partition node name pattern X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=c705e63a323a1a6c8d5830c2c3992586ef5fba26;p=linux.git 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 Reviewed-by: Pratyush Yadav Reviewed-by: Dhruva Gole Signed-off-by: Miquel Raynal Link: https://lore.kernel.org/linux-mtd/20230120020454.3225796-1-robh@kernel.org --- diff --git a/Documentation/devicetree/bindings/mtd/partitions/partitions.yaml b/Documentation/devicetree/bindings/mtd/partitions/partitions.yaml index 9aca4e6c6047a..2edc65e0e3610 100644 --- a/Documentation/devicetree/bindings/mtd/partitions/partitions.yaml +++ b/Documentation/devicetree/bindings/mtd/partitions/partitions.yaml @@ -32,7 +32,7 @@ properties: enum: [1, 2] patternProperties: - "partition(-.+|@[0-9a-f]+)": + "^partition(-.+|@[0-9a-f]+)$": $ref: partition.yaml required: