summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/leds/leds-pwm-multicolor.yaml
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2022-06-24 14:21:06 +0300
committerPavel Machek <pavel@ucw.cz>2022-07-17 15:45:01 +0300
commitde40c8496ead3e25d1e989999eed0c3ecee8fc96 (patch)
tree35e33866f7e96d103a7c201960657c855744fdb1 /Documentation/devicetree/bindings/leds/leds-pwm-multicolor.yaml
parenta0ba692072d89075d0a75c7ad9df31f2c1ee9a1c (diff)
downloadlinux-de40c8496ead3e25d1e989999eed0c3ecee8fc96.tar.xz
dt-bindings: leds: class-multicolor: reference class directly in multi-led node
The leds/common.yaml is referenced directly in each LED node, which leads to people doing the same with leds/leds-class-multicolor.yaml. This is not correct because leds-class-multicolor.yaml defined multi-led property and its children. Some schemas implemented this incorrect. Rework this to match same behavior common.yaml, so expect the multi-led node to reference the leds-class-multicolor.yaml. Fixing allows to add unevaluatedProperties:false. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Pavel Machek <pavel@ucw.cz>
Diffstat (limited to 'Documentation/devicetree/bindings/leds/leds-pwm-multicolor.yaml')
-rw-r--r--Documentation/devicetree/bindings/leds/leds-pwm-multicolor.yaml5
1 files changed, 2 insertions, 3 deletions
diff --git a/Documentation/devicetree/bindings/leds/leds-pwm-multicolor.yaml b/Documentation/devicetree/bindings/leds/leds-pwm-multicolor.yaml
index 8d614eaf5c5e..70b4bad00a63 100644
--- a/Documentation/devicetree/bindings/leds/leds-pwm-multicolor.yaml
+++ b/Documentation/devicetree/bindings/leds/leds-pwm-multicolor.yaml
@@ -19,6 +19,8 @@ properties:
multi-led:
type: object
+ $ref: leds-class-multicolor.yaml#
+ unevaluatedProperties: false
patternProperties:
"^led-[0-9a-z]+$":
@@ -46,9 +48,6 @@ properties:
required:
- compatible
-allOf:
- - $ref: leds-class-multicolor.yaml#
-
additionalProperties: false
examples: