dt-bindings: pinctrl: amlogic: narrow regex for unit address to hex numbers
Commit Message
Regular expression used to match the unit address part should not allow
non-hex numbers.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
.../devicetree/bindings/pinctrl/amlogic,meson-pinctrl-a1.yaml | 2 +-
.../bindings/pinctrl/amlogic,meson-pinctrl-g12a-aobus.yaml | 2 +-
.../bindings/pinctrl/amlogic,meson-pinctrl-g12a-periphs.yaml | 2 +-
.../bindings/pinctrl/amlogic,meson8-pinctrl-aobus.yaml | 2 +-
.../bindings/pinctrl/amlogic,meson8-pinctrl-cbus.yaml | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
Comments
On 23/01/2024 09:35, Krzysztof Kozlowski wrote:
> Regular expression used to match the unit address part should not allow
> non-hex numbers.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
> .../devicetree/bindings/pinctrl/amlogic,meson-pinctrl-a1.yaml | 2 +-
> .../bindings/pinctrl/amlogic,meson-pinctrl-g12a-aobus.yaml | 2 +-
> .../bindings/pinctrl/amlogic,meson-pinctrl-g12a-periphs.yaml | 2 +-
> .../bindings/pinctrl/amlogic,meson8-pinctrl-aobus.yaml | 2 +-
> .../bindings/pinctrl/amlogic,meson8-pinctrl-cbus.yaml | 2 +-
> 5 files changed, 5 insertions(+), 5 deletions(-)
>
<snip>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
On Tue, Jan 23, 2024 at 9:35 AM Krzysztof Kozlowski
<krzysztof.kozlowski@linaro.org> wrote:
> Regular expression used to match the unit address part should not allow
> non-hex numbers.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Patch applied!
Yours,
Linus Walleij
@@ -24,7 +24,7 @@ required:
- compatible
patternProperties:
- "^bank@[0-9a-z]+$":
+ "^bank@[0-9a-f]+$":
$ref: amlogic,meson-pinctrl-common.yaml#/$defs/meson-gpio
unevaluatedProperties: false
@@ -21,7 +21,7 @@ required:
- compatible
patternProperties:
- "^bank@[0-9a-z]+$":
+ "^bank@[0-9a-f]+$":
$ref: amlogic,meson-pinctrl-common.yaml#/$defs/meson-gpio
unevaluatedProperties: false
@@ -21,7 +21,7 @@ required:
- compatible
patternProperties:
- "^bank@[0-9a-z]+$":
+ "^bank@[0-9a-f]+$":
$ref: amlogic,meson-pinctrl-common.yaml#/$defs/meson-gpio
unevaluatedProperties: false
@@ -29,7 +29,7 @@ required:
- compatible
patternProperties:
- "^bank@[0-9a-z]+$":
+ "^bank@[0-9a-f]+$":
$ref: amlogic,meson-pinctrl-common.yaml#/$defs/meson-gpio
unevaluatedProperties: false
@@ -29,7 +29,7 @@ required:
- compatible
patternProperties:
- "^bank@[0-9a-z]+$":
+ "^bank@[0-9a-f]+$":
$ref: amlogic,meson-pinctrl-common.yaml#/$defs/meson-gpio
unevaluatedProperties: false