[PATCH] dt-bindings: Add missing start and/or end of line regex anchors
Viresh Kumar
viresh.kumar at linaro.org
Mon Nov 21 06:08:46 CET 2022
On 18-11-22, 16:37, Rob Herring wrote:
> json-schema patterns by default will match anywhere in a string, so
> typically we want at least the start or end anchored. Fix the obvious
> cases where the anchors were forgotten.
>
> Signed-off-by: Rob Herring <robh at kernel.org>
> ---
> .../devicetree/bindings/cpufreq/qcom-cpufreq-nvmem.yaml | 2 +-
> Documentation/devicetree/bindings/hwmon/adt7475.yaml | 4 ++--
> .../bindings/opp/allwinner,sun50i-h6-operating-points.yaml | 4 ++--
> .../devicetree/bindings/pci/mediatek,mt7621-pcie.yaml | 2 +-
> .../devicetree/bindings/pci/renesas,pci-rcar-gen2.yaml | 2 +-
> Documentation/devicetree/bindings/regulator/max8660.yaml | 2 +-
> .../devicetree/bindings/regulator/maxim,max77802.yaml | 2 +-
> Documentation/devicetree/bindings/regulator/regulator.yaml | 2 +-
> .../devicetree/bindings/regulator/rohm,bd9576-regulator.yaml | 2 +-
> Documentation/devicetree/bindings/sound/renesas,rsnd.yaml | 2 +-
> .../devicetree/bindings/spi/nvidia,tegra210-quad.yaml | 2 +-
> 11 files changed, 13 insertions(+), 13 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/cpufreq/qcom-cpufreq-nvmem.yaml b/Documentation/devicetree/bindings/cpufreq/qcom-cpufreq-nvmem.yaml
> index a11e1b867379..3c00ad09eeaa 100644
> --- a/Documentation/devicetree/bindings/cpufreq/qcom-cpufreq-nvmem.yaml
> +++ b/Documentation/devicetree/bindings/cpufreq/qcom-cpufreq-nvmem.yaml
> @@ -38,7 +38,7 @@ properties:
> type: object
>
> patternProperties:
> - 'cpu@[0-9a-f]+':
> + '^cpu@[0-9a-f]+$':
> type: object
>
> properties:
> diff --git a/Documentation/devicetree/bindings/opp/allwinner,sun50i-h6-operating-points.yaml b/Documentation/devicetree/bindings/opp/allwinner,sun50i-h6-operating-points.yaml
> index 385b0692261c..51f62c3ae194 100644
> --- a/Documentation/devicetree/bindings/opp/allwinner,sun50i-h6-operating-points.yaml
> +++ b/Documentation/devicetree/bindings/opp/allwinner,sun50i-h6-operating-points.yaml
> @@ -41,7 +41,7 @@ required:
> - nvmem-cells
>
> patternProperties:
> - "opp-[0-9]+":
> + "^opp-[0-9]+$":
> type: object
>
> properties:
> @@ -49,7 +49,7 @@ patternProperties:
> clock-latency-ns: true
>
> patternProperties:
> - "opp-microvolt-.*": true
> + "^opp-microvolt-speed[0-9]$": true
>
> required:
> - opp-hz
Acked-by: Viresh Kumar <viresh.kumar at linaro.org>
--
viresh
More information about the Alsa-devel
mailing list