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

Rob Herring (Arm) posted 1 patch 1 month, 2 weeks ago
.../devicetree/bindings/devfreq/event/samsung,exynos-ppmu.yaml  | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] dt-bindings: devfreq: samsung,exynos-ppmu: Use standard regex syntax
Posted by Rob Herring (Arm) 1 month, 2 weeks ago
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.

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
---
 .../devicetree/bindings/devfreq/event/samsung,exynos-ppmu.yaml  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/devfreq/event/samsung,exynos-ppmu.yaml b/Documentation/devicetree/bindings/devfreq/event/samsung,exynos-ppmu.yaml
index d27dcb2fef12..a3f0cd508b3a 100644
--- a/Documentation/devicetree/bindings/devfreq/event/samsung,exynos-ppmu.yaml
+++ b/Documentation/devicetree/bindings/devfreq/event/samsung,exynos-ppmu.yaml
@@ -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:
-- 
2.53.0
Re: [PATCH] dt-bindings: devfreq: samsung,exynos-ppmu: Use standard regex syntax
Posted by Rob Herring 1 month, 1 week ago
On Thu, Aug 13, 2026 at 12:39:58PM -0500, Rob Herring (Arm) wrote:
> 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.
> 
> Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
> ---
>  .../devicetree/bindings/devfreq/event/samsung,exynos-ppmu.yaml  | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks.

Rob
Re: [PATCH] dt-bindings: devfreq: samsung,exynos-ppmu: Use standard regex syntax
Posted by Krzysztof Kozlowski 1 month, 1 week ago
On Thu, Aug 13, 2026 at 12:39:58PM -0500, Rob Herring (Arm) wrote:
> 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.
> 
> Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
> ---
>  .../devicetree/bindings/devfreq/event/samsung,exynos-ppmu.yaml  | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>

Best regards,
Krzysztof