Skip to content

Commit

Permalink
regulator: mt6315: Enforce regulator-compatible, not name
Browse files Browse the repository at this point in the history
[ Upstream commit 6d435a9 ]

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: Nícolas F. R. A. Prado <nfraprado@collabora.com>
Link: https://lore.kernel.org/r/20220429201325.2205799-1-nfraprado@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
nfraprado authored and gregkh committed Jun 9, 2022
1 parent a8bc564 commit 7ac4b7b
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -31,7 +31,7 @@ properties:
$ref: "regulator.yaml#"

properties:
regulator-name:
regulator-compatible:
pattern: "^vbuck[1-4]$"

additionalProperties: false
Expand Down

0 comments on commit 7ac4b7b

Please sign in to comment.