Skip to content

Commit a47f580

Browse files
committed
media: dt-bindings: Add missing unevaluatedProperties 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. Acked-by: Conor Dooley <conor.dooley@microchip.com> Link: https://lore.kernel.org/r/20230925212803.1976803-1-robh@kernel.org Signed-off-by: Rob Herring <robh@kernel.org>
1 parent c132d9c commit a47f580

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

Documentation/devicetree/bindings/media/i2c/sony,imx415.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ properties:
5454

5555
port:
5656
$ref: /schemas/graph.yaml#/$defs/port-base
57+
unevaluatedProperties: false
5758

5859
properties:
5960
endpoint:

Documentation/devicetree/bindings/media/i2c/toshiba,tc358746.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ properties:
6969
properties:
7070
port@0:
7171
$ref: /schemas/graph.yaml#/$defs/port-base
72+
unevaluatedProperties: false
7273
description: Input port
7374

7475
properties:
@@ -89,6 +90,7 @@ properties:
8990

9091
port@1:
9192
$ref: /schemas/graph.yaml#/$defs/port-base
93+
unevaluatedProperties: false
9294
description: Output port
9395

9496
properties:

Documentation/devicetree/bindings/media/samsung,fimc.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ properties:
5757
patternProperties:
5858
"^port@[01]$":
5959
$ref: /schemas/graph.yaml#/$defs/port-base
60+
unevaluatedProperties: false
6061
description:
6162
Camera A and camera B inputs.
6263

0 commit comments

Comments
 (0)