Skip to content

Commit 66af368

Browse files
robherringbroonie
authored andcommitted
regulator: 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. Signed-off-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20230925212658.1975419-1-robh@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 6e6891c commit 66af368

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

Documentation/devicetree/bindings/regulator/maxim,max20086.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ properties:
4343
"^OUT[1-4]$":
4444
type: object
4545
$ref: regulator.yaml#
46+
unevaluatedProperties: false
4647

4748
additionalProperties: false
4849

Documentation/devicetree/bindings/regulator/maxim,max77826.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,12 @@ properties:
3030
"^LDO([1-9]|1[0-5])$":
3131
type: object
3232
$ref: regulator.yaml#
33+
unevaluatedProperties: false
3334

3435
"^BUCK|BUCKBOOST$":
3536
type: object
3637
$ref: regulator.yaml#
38+
unevaluatedProperties: false
3739

3840
additionalProperties: false
3941

Documentation/devicetree/bindings/regulator/onnn,fan53880.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,12 @@ properties:
4848
"^LDO[1-4]$":
4949
type: object
5050
$ref: regulator.yaml#
51+
unevaluatedProperties: false
5152

5253
"^BUCK|BOOST$":
5354
type: object
5455
$ref: regulator.yaml#
56+
unevaluatedProperties: false
5557

5658
additionalProperties: false
5759

0 commit comments

Comments
 (0)