]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
regulator: mt6315: Enforce regulator-compatible, not name
authorNícolas F. R. A. Prado <nfraprado@collabora.com>
Fri, 29 Apr 2022 20:13:24 +0000 (16:13 -0400)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 10 Aug 2022 07:23:45 +0000 (09:23 +0200)
BugLink: https://bugs.launchpad.net/bugs/1981864
[ Upstream commit 6d435a94ba5bb4f2ad381c0828fbae89c66b50fe ]

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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Documentation/devicetree/bindings/regulator/mt6315-regulator.yaml

index 61dd5af80db6755945694298624f03c74e8709de..5d2d989de893c889f530d32388cd27fc0be50d6e 100644 (file)
@@ -31,7 +31,7 @@ properties:
         $ref: "regulator.yaml#"
 
         properties:
-          regulator-name:
+          regulator-compatible:
             pattern: "^vbuck[1-4]$"
 
     additionalProperties: false