From: NĂ­colas F. R. A. Prado Date: Fri, 29 Apr 2022 20:13:24 +0000 (-0400) Subject: regulator: mt6315: Enforce regulator-compatible, not name X-Git-Tag: v5.19-rc1~186^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6d435a94ba5bb4f2ad381c0828fbae89c66b50fe;p=thirdparty%2Flinux.git 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: NĂ­colas F. R. A. Prado Link: https://lore.kernel.org/r/20220429201325.2205799-1-nfraprado@collabora.com Signed-off-by: Mark Brown --- diff --git a/Documentation/devicetree/bindings/regulator/mt6315-regulator.yaml b/Documentation/devicetree/bindings/regulator/mt6315-regulator.yaml index 61dd5af80db67..5d2d989de893c 100644 --- a/Documentation/devicetree/bindings/regulator/mt6315-regulator.yaml +++ b/Documentation/devicetree/bindings/regulator/mt6315-regulator.yaml @@ -31,7 +31,7 @@ properties: $ref: "regulator.yaml#" properties: - regulator-name: + regulator-compatible: pattern: "^vbuck[1-4]$" additionalProperties: false