Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

regulator: dt-bindings: qcom,rpm: fix pattern for children

The "or" (|) in regular expression must be within parentheses,
otherwise it is not really an "or" and it matches supplies:

qcom-apq8060-dragonboard.dtb: regulators-1: vdd_ncp-supply: [[34]] is not of type 'object'

Fixes: fde0e25b71a9 ("dt-bindings: regulators: convert non-smd RPM Regulators bindings to dt-schema")
Cc: stable@vger.kernel.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230725164047.368892-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Mark Brown
75d9bf03 7631a0c5

+1 -1
+1 -1
Documentation/devicetree/bindings/regulator/qcom,rpm-regulator.yaml
··· 49 49 ".*-supply$": 50 50 description: Input supply phandle(s) for this node 51 51 52 - "^((s|l|lvs)[0-9]*)|(s[1-2][a-b])|(ncp)|(mvs)|(usb-switch)|(hdmi-switch)$": 52 + "^((s|l|lvs)[0-9]*|s[1-2][a-b]|ncp|mvs|usb-switch|hdmi-switch)$": 53 53 description: List of regulators and its properties 54 54 $ref: regulator.yaml# 55 55 unevaluatedProperties: false