Skip to content

Commit 0863572

Browse files
robherringbroonie
authored andcommitted
ASoC: dt-bindings: tas5805m: Disallow undefined properties
Device specific bindings should not allow undefined properties. This is accomplished in json-schema with 'additionalProperties: false'. Examples should be last in the schema, so move additionalProperties up while we're here. Signed-off-by: Rob Herring <robh@kernel.org> Acked-by: Conor Dooley <conor.dooley@microchip.com> Link: https://lore.kernel.org/r/20231016155547.2973853-1-robh@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 85045a9 commit 0863572

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Documentation/devicetree/bindings/sound/tas5805m.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ properties:
3737
generated from TI's PPC3 tool.
3838
$ref: /schemas/types.yaml#/definitions/string
3939

40+
additionalProperties: false
41+
4042
examples:
4143
- |
4244
i2c {
@@ -52,5 +54,4 @@ examples:
5254
ti,dsp-config-name = "mono_pbtl_48khz";
5355
};
5456
};
55-
56-
additionalProperties: true
57+
...

0 commit comments

Comments
 (0)