Skip to content

Commit b2c2878

Browse files
robherringbroonie
authored andcommitted
ASoC: dt-bindings: microchip,sama7g5-pdmc: Simplify "microchip,mic-pos" constraints
"enum" values should be integers or strings, not arrays (though json-schema does allow arrays, we do not). In this case, all possible combinations are allowed anyways, so there's little point in expressing as an array. Signed-off-by: Rob Herring <robh@kernel.org> Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com> Link: https://lore.kernel.org/r/Message-Id: <20230621231044.3816914-1-robh@kernel.org> Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent f47d432 commit b2c2878

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

Documentation/devicetree/bindings/sound/microchip,sama7g5-pdmc.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,9 @@ properties:
5656
items:
5757
items:
5858
- description: value for DS line
59+
enum: [0, 1]
5960
- description: value for sampling edge
60-
anyOf:
61-
- enum:
62-
- [0, 0]
63-
- [0, 1]
64-
- [1, 0]
65-
- [1, 1]
61+
enum: [0, 1]
6662
minItems: 1
6763
maxItems: 4
6864
uniqueItems: true

0 commit comments

Comments
 (0)