Commit 7621aabd authored by Rob Herring's avatar Rob Herring
Browse files

dt-bindings: Add missing start and/or end of line regex anchors



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.

Acked-by: default avatarMatti Vaittinen <mazziesaccount@gmail.com>
Acked-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Acked-by: default avatarYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Acked-by: default avatarMark Brown <broonie@kernel.org>
Acked-by: default avatarSergio Paracuellos <sergio.paracuellos@gmail.com>
Acked-by: default avatarGuenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20221118223728.1721589-1-robh@kernel.org


Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent f980520b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -38,7 +38,7 @@ properties:
    type: object

    patternProperties:
      'cpu@[0-9a-f]+':
      '^cpu@[0-9a-f]+$':
        type: object

        properties:
+2 −2
Original line number Diff line number Diff line
@@ -61,7 +61,7 @@ patternProperties:
    $ref: /schemas/types.yaml#/definitions/uint32
    enum: [0, 1]

  "adi,pin(5|10)-function":
  "^adi,pin(5|10)-function$":
    description: |
      Configures the function for pin 5 on the adi,adt7473 and adi,adt7475. Or
      pin 10 on the adi,adt7476 and adi,adt7490.
@@ -70,7 +70,7 @@ patternProperties:
      - pwm2
      - smbalert#

  "adi,pin(9|14)-function":
  "^adi,pin(9|14)-function$":
    description: |
      Configures the function for pin 9 on the adi,adt7473 and adi,adt7475. Or
      pin 14 on the adi,adt7476 and adi,adt7490
+2 −2
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ properties:
    maxItems: 2

patternProperties:
  'pcie@[0-2],0':
  '^pcie@[0-2],0$':
    type: object
    $ref: /schemas/pci/pci-bus.yaml#

+1 −1
Original line number Diff line number Diff line
@@ -65,7 +65,7 @@ properties:
    maxItems: 1

patternProperties:
  'usb@[0-1],0':
  '^usb@[0-1],0$':
    type: object

    description:
Loading