summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/sound/maxim,max98390.yaml
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2020-08-14 09:21:41 -0600
committerRob Herring <robh@kernel.org>2020-08-14 09:28:52 -0600
commit5f0b06da5cde3f0a613308b89f0afea678559fdf (patch)
treeb440f87a723612710cb9fa28421c5c75f8571169 /Documentation/devicetree/bindings/sound/maxim,max98390.yaml
parentf516fb704d02fff292cb79a6ad85c56529f7c8cf (diff)
dt-bindings: Remove more cases of 'allOf' containing a '$ref'
Another wack-a-mole pass of killing off unnecessary 'allOf + $ref' usage. json-schema versions draft7 and earlier have a weird behavior in that any keywords combined with a '$ref' are ignored (silently). The correct form was to put a '$ref' under an 'allOf'. This behavior is now changed in the 2019-09 json-schema spec and '$ref' can be mixed with other keywords. The json-schema library doesn't yet support this, but the tooling now does a fixup for this and either way works. This has been a constant source of review comments, so let's change this treewide so everyone copies the simpler syntax. Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings/sound/maxim,max98390.yaml')
-rw-r--r--Documentation/devicetree/bindings/sound/maxim,max98390.yaml6
1 files changed, 2 insertions, 4 deletions
diff --git a/Documentation/devicetree/bindings/sound/maxim,max98390.yaml b/Documentation/devicetree/bindings/sound/maxim,max98390.yaml
index 9c2e3effa0c0..fea9a1b6619a 100644
--- a/Documentation/devicetree/bindings/sound/maxim,max98390.yaml
+++ b/Documentation/devicetree/bindings/sound/maxim,max98390.yaml
@@ -18,16 +18,14 @@ properties:
description: I2C address of the device.
maxim,temperature_calib:
- allOf:
- - $ref: /schemas/types.yaml#/definitions/uint32
description: The calculated temperature data was measured while doing the calibration.
+ $ref: /schemas/types.yaml#/definitions/uint32
minimum: 0
maximum: 65535
maxim,r0_calib:
- allOf:
- - $ref: /schemas/types.yaml#/definitions/uint32
description: This is r0 calibration data which was measured in factory mode.
+ $ref: /schemas/types.yaml#/definitions/uint32
minimum: 1
maximum: 8388607