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 <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20221127204058.57111-2-krzysztof.kozlowski@linaro.org Signed-off-by: Rob Herring <robh@kernel.org> Git-commit: fe469e83eb5b383c8abbf1d1cab7a038e3d6778b Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git Signed-off-by: Anjelique Melendez <quic_amelende@quicinc.com>
This commit is contained in:
committed by
Anjelique Melendez
parent
6e5cf08b54
commit
c4a05684d4
@@ -72,14 +72,24 @@ properties:
|
|||||||
"^led@[0-9a-f]$":
|
"^led@[0-9a-f]$":
|
||||||
type: object
|
type: object
|
||||||
$ref: common.yaml#
|
$ref: common.yaml#
|
||||||
|
unevaluatedProperties: false
|
||||||
|
|
||||||
|
properties:
|
||||||
|
reg:
|
||||||
|
maxItems: 1
|
||||||
|
|
||||||
|
required:
|
||||||
|
- reg
|
||||||
|
|
||||||
patternProperties:
|
patternProperties:
|
||||||
"^led@[0-9a-f]$":
|
"^led@[0-9a-f]$":
|
||||||
type: object
|
type: object
|
||||||
$ref: common.yaml#
|
$ref: common.yaml#
|
||||||
|
unevaluatedProperties: false
|
||||||
|
|
||||||
properties:
|
properties:
|
||||||
reg: true
|
reg:
|
||||||
|
maxItems: 1
|
||||||
|
|
||||||
required:
|
required:
|
||||||
- reg
|
- reg
|
||||||
|
Reference in New Issue
Block a user