Skip to content

Commit 0bacee9

Browse files
mchehabgregkh
authored andcommitted
staging: hisilicon,hi6421-spmi-pmic.yaml: fix patternProperties
[ Upstream commit 334201d ] 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 <[email protected]> Link: https://lore.kernel.org/r/46b2f30df235481cb1404913380e45706dfd8253.1626515862.git.mchehab+huawei@kernel.org Signed-off-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent 1a5f04f commit 0bacee9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

drivers/staging/hikey9xx/hisilicon,hi6421-spmi-pmic.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ properties:
4242
regulators:
4343
type: object
4444

45+
additionalProperties: false
46+
4547
properties:
4648
'#address-cells':
4749
const: 1
@@ -50,11 +52,13 @@ properties:
5052
const: 0
5153

5254
patternProperties:
53-
'^ldo[0-9]+@[0-9a-f]$':
55+
'^(ldo|LDO)[0-9]+$':
5456
type: object
5557

5658
$ref: "/schemas/regulator/regulator.yaml#"
5759

60+
unevaluatedProperties: false
61+
5862
required:
5963
- compatible
6064
- reg

0 commit comments

Comments
 (0)