[PATCH] dt-bindings: Add missing (unevaluated|additional)Properties on child node schemas
Sebastian Reichel
sebastian.reichel at collabora.com
Mon Jan 30 00:51:34 CET 2023
Hi,
On Tue, Jan 24, 2023 at 05:02:28PM -0600, Rob Herring wrote:
> 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.
>
> Add unevaluatedProperties or additionalProperties as appropriate, and
> then add any missing properties flagged by the addition.
>
> Signed-off-by: Rob Herring <robh at kernel.org>
> ---
> [...]
> diff --git a/Documentation/devicetree/bindings/power/supply/ti,lp8727.yaml b/Documentation/devicetree/bindings/power/supply/ti,lp8727.yaml
> index ce6fbdba8f6b..0542d4126cf5 100644
> --- a/Documentation/devicetree/bindings/power/supply/ti,lp8727.yaml
> +++ b/Documentation/devicetree/bindings/power/supply/ti,lp8727.yaml
> @@ -28,6 +28,7 @@ properties:
> patternProperties:
> '^(ac|usb)$':
> type: object
> + additionalProperties: false
> description: USB/AC charging parameters
> properties:
> charger-type:
Acked-by: Sebastian Reichel <sebastian.reichel at collabora.com>
-- Sebastian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20230130/3fab26b9/attachment-0001.sig>
More information about the Alsa-devel
mailing list