From c4a05684d455b1f8b278aacbd63c1af537d91c63 Mon Sep 17 00:00:00 2001 From: Krzysztof Kozlowski Date: Sun, 27 Nov 2022 21:40:53 +0100 Subject: [PATCH] dt-bindings: leds: use unevaluatedProperties for common.yaml The common.yaml schema allows further properties, so the bindings using it should restrict it with unevaluatedProperties:false. Change-Id: I00b05a0591c43888b1c87331f94da027ccd42d8e Signed-off-by: Krzysztof Kozlowski Link: https://lore.kernel.org/r/20221127204058.57111-2-krzysztof.kozlowski@linaro.org Signed-off-by: Rob Herring Git-commit: fe469e83eb5b383c8abbf1d1cab7a038e3d6778b Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git Signed-off-by: Anjelique Melendez --- bindings/leds/leds-qcom-lpg.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/bindings/leds/leds-qcom-lpg.yaml b/bindings/leds/leds-qcom-lpg.yaml index 497db289..1df83779 100644 --- a/bindings/leds/leds-qcom-lpg.yaml +++ b/bindings/leds/leds-qcom-lpg.yaml @@ -72,14 +72,24 @@ properties: "^led@[0-9a-f]$": type: object $ref: common.yaml# + unevaluatedProperties: false + + properties: + reg: + maxItems: 1 + + required: + - reg patternProperties: "^led@[0-9a-f]$": type: object $ref: common.yaml# + unevaluatedProperties: false properties: - reg: true + reg: + maxItems: 1 required: - reg