Skip to content

Commit 716a802

Browse files
robherringgregkh
authored andcommitted
dt-bindings: nvmem: u-boot,env: Add missing additionalProperties on child node schemas
Just as unevaluatedProperties or additionalProperties are required at the top level of schemas, they should (and will) also be required for child node schemas. That ensures only documented properties are present for any node. Signed-off-by: Rob Herring <robh@kernel.org> Acked-by: Conor Dooley <conor.dooley@microchip.com> Acked-by: Rafał Miłecki <rafal@milecki.pl> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Link: https://lore.kernel.org/r/20231020105545.216052-6-srinivas.kandagatla@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent c533072 commit 716a802

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Documentation/devicetree/bindings/nvmem/u-boot,env.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ properties:
5151
ethaddr:
5252
type: object
5353
description: Ethernet interfaces base MAC address.
54+
additionalProperties: false
55+
5456
properties:
5557
"#nvmem-cell-cells":
5658
description: The first argument is a MAC address offset.

0 commit comments

Comments
 (0)