]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ASoC: dt-bindings: mediatek,mt2701-wm8960: Correctly use additionalProperties
authorKrzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Wed, 25 Mar 2026 11:08:50 +0000 (12:08 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 25 Mar 2026 12:26:14 +0000 (12:26 +0000)
The binding does not reference any other schema, thus should use
"additionalProperties: false" to disallow any undocumented properties.
Correct the code and place this after "required:" block to match
convention expressed in example-schema.yaml.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Link: https://patch.msgid.link/20260325110849.127051-3-krzysztof.kozlowski@oss.qualcomm.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/sound/mediatek,mt2701-wm8960.yaml

index cf985461a995e485ded689c27ed5b6b4b0d21e6b..bb6a405b263e5c516ccb55018fe8736848d6f4c3 100644 (file)
@@ -28,8 +28,6 @@ properties:
     $ref: /schemas/types.yaml#/definitions/phandle
     description: The phandle of the WM8960 audio codec.
 
-unevaluatedProperties: false
-
 required:
   - compatible
   - mediatek,platform
@@ -38,6 +36,8 @@ required:
   - pinctrl-names
   - pinctrl-0
 
+additionalProperties: false
+
 examples:
   - |
     sound {