[PATCH] dt-bindings: Add missing (unevaluated|additional)Properties on child node schemas
Sebastian Reichel
sebastian.reichel at collabora.com
Sun Jan 29 15:51:34 PST 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://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20230130/3fab26b9/attachment.sig>
More information about the linux-arm-kernel
mailing list