Skip to contentSkip to conversation

dt-bindings: devfreq: samsung,exynos-ppmu: Use standard regex syntax

PATCH Applied Rob Herring (Arm) 2 participants 3 messages Aug 13 – Aug 17

Subsystems (4)
lore
Share & tools
lore

Rob Herring (Arm)

author maintainer
#0 lore raw

PATCH 1/1 dt-bindings: devfreq: samsung,exynos-ppmu: Use standard regex syntax

The "{,N}" regex syntax is non-standard, but happens to be supported by python re module. It is equivalent to "{0,N}" which is more commonly supported. This fixes using a rust implementation of the DT schema tools.

---
 .../devicetree/bindings/devfreq/event/samsung,exynos-ppmu.yaml  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/devfreq/event/samsung,exynos-ppmu.yaml +1 -1
index d27dcb2fef12..a3f0cd508b3a 100644
@@ -40,7 +40,7 @@ properties:
     type: object
 
     patternProperties:
-      '^ppmu-event[0-9]+(-[a-z0-9]+){,2}$':
+      '^ppmu-event[0-9]+(-[a-z0-9]+){0,2}$':
         type: object
         properties:
           event-name:
Signature · 1 line
2.53.0
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Rob Herring (Arm)

The "{,N}" regex syntax is non-standard, but happens to be supported by python re module. It is equivalent to "{0,N}" which is more commonly supported. This fixes using a rust implementation of the DT schema tools.

---
 .../devicetree/bindings/devfreq/event/samsung,exynos-ppmu.yaml  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Best regards,
Krzysztof

author maintainer Applied
#2 lore raw
In reply to Rob Herring (Arm)
Quoted 9 lines · Rob Herring (Arm)

The "{,N}" regex syntax is non-standard, but happens to be supported by python re module. It is equivalent to "{0,N}" which is more commonly supported. This fixes using a rust implementation of the DT schema tools.

---
 .../devicetree/bindings/devfreq/event/samsung,exynos-ppmu.yaml  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks.

Rob