]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
staging: hisilicon,hi6421-spmi-pmic.yaml: fix patternProperties
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sat, 17 Jul 2021 09:58:17 +0000 (11:58 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 18 Sep 2021 11:42:01 +0000 (13:42 +0200)
[ Upstream commit 334201d503d5903f38f6e804263fc291ce8f451a ]

The regex at the patternProperties is wrong, although this was
not reported as the DT schema was not enforcing properties.

Fix it.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/46b2f30df235481cb1404913380e45706dfd8253.1626515862.git.mchehab+huawei@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/staging/hikey9xx/hisilicon,hi6421-spmi-pmic.yaml

index 3b23ad56b31ac984ffad8555f1defc4afdef5aba..ef664b4458fb47f8b8a1ee9619034d958815bbb9 100644 (file)
@@ -42,6 +42,8 @@ properties:
   regulators:
     type: object
 
+    additionalProperties: false
+
     properties:
       '#address-cells':
         const: 1
@@ -50,11 +52,13 @@ properties:
         const: 0
 
     patternProperties:
-      '^ldo[0-9]+@[0-9a-f]$':
+      '^(ldo|LDO)[0-9]+$':
         type: object
 
         $ref: "/schemas/regulator/regulator.yaml#"
 
+        unevaluatedProperties: false
+
 required:
   - compatible
   - reg