Skip to content

Commit

Permalink
staging: hisilicon,hi6421-spmi-pmic.yaml: fix patternProperties
Browse files Browse the repository at this point in the history
[ 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 <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>
  • Loading branch information
mchehab authored and gregkh committed Sep 18, 2021
1 parent c98d9dd commit 85a2f4d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/staging/hikey9xx/hisilicon,hi6421-spmi-pmic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ properties:
regulators:
type: object

additionalProperties: false

properties:
'#address-cells':
const: 1
Expand All @@ -49,11 +51,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
Expand Down

0 comments on commit 85a2f4d

Please sign in to comment.