2024-01-23 08:46:20

by Krzysztof Kozlowski

[permalink] [raw]
Subject: [PATCH] dt-bindings: sram: narrow regex for unit address to hex numbers

Regular expression used to match the unit address part should not allow
non-hex numbers.

Signed-off-by: Krzysztof Kozlowski <[email protected]>
---
.../bindings/sram/allwinner,sun4i-a10-system-control.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/sram/allwinner,sun4i-a10-system-control.yaml b/Documentation/devicetree/bindings/sram/allwinner,sun4i-a10-system-control.yaml
index a1c96985951f..cf07b8f787a6 100644
--- a/Documentation/devicetree/bindings/sram/allwinner,sun4i-a10-system-control.yaml
+++ b/Documentation/devicetree/bindings/sram/allwinner,sun4i-a10-system-control.yaml
@@ -56,7 +56,7 @@ properties:
ranges: true

patternProperties:
- "^sram@[a-z0-9]+":
+ "^sram@[a-f0-9]+":
$ref: /schemas/sram/sram.yaml#
unevaluatedProperties: false

--
2.34.1



2024-01-23 17:46:03

by Jernej Škrabec

[permalink] [raw]
Subject: Re: [PATCH] dt-bindings: sram: narrow regex for unit address to hex numbers

Dne torek, 23. januar 2024 ob 09:34:50 CET je Krzysztof Kozlowski napisal(a):
> Regular expression used to match the unit address part should not allow
> non-hex numbers.
>
> Signed-off-by: Krzysztof Kozlowski <[email protected]>

Acked-by: Jernej Skrabec <[email protected]>

Best regards,
Jernej




2024-01-23 20:58:08

by Jernej Škrabec

[permalink] [raw]
Subject: Re: [PATCH] dt-bindings: sram: narrow regex for unit address to hex numbers

Dne torek, 23. januar 2024 ob 09:34:50 CET je Krzysztof Kozlowski napisal(a):
> Regular expression used to match the unit address part should not allow
> non-hex numbers.
>
> Signed-off-by: Krzysztof Kozlowski <[email protected]>

Merged, thanks!

Best regards,
Jernej