Commit 6d435a94 authored by Nícolas F. R. A. Prado's avatar Nícolas F. R. A. Prado Committed by Mark Brown

regulator: mt6315: Enforce regulator-compatible, not name

The MT6315 PMIC dt-binding should enforce that one of the valid
regulator-compatible is set in each regulator node. However it was
mistakenly matching against regulator-name instead.

Fix the typo. This not only fixes the compatible verification, but also
lifts the regulator-name restriction, so that more meaningful names can
be set for each platform.
Signed-off-by: default avatarNícolas F. R. A. Prado <nfraprado@collabora.com>
Link: https://lore.kernel.org/r/20220429201325.2205799-1-nfraprado@collabora.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent dfd2b37e
......@@ -31,7 +31,7 @@ properties:
$ref: "regulator.yaml#"
properties:
regulator-name:
regulator-compatible:
pattern: "^vbuck[1-4]$"
additionalProperties: false
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment