]> Git Repo - J-linux.git/commitdiff
dt-bindings: watchdog: restrict node name suffixes
authorKrzysztof Kozlowski <[email protected]>
Tue, 30 May 2023 14:48:51 +0000 (16:48 +0200)
committerWim Van Sebroeck <[email protected]>
Mon, 26 Jun 2023 12:30:07 +0000 (14:30 +0200)
Make the pattern matching node names a bit stricter to improve DTS
consistency.  The pattern is restricted to -N suffixes to decimal
numbers.

Suggested-by: Rob Herring <[email protected]>
Signed-off-by: Krzysztof Kozlowski <[email protected]>
Reviewed-by: Guenter Roeck <[email protected]>
Reviewed-by: Tony Lindgren <[email protected]>
Acked-by: Rob Herring <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Guenter Roeck <[email protected]>
Signed-off-by: Wim Van Sebroeck <[email protected]>
Documentation/devicetree/bindings/watchdog/watchdog.yaml

index 519b48889eb148a131674c85ff79c2cc10fe940b..f0a584af1223ebdf4dd8c31b98270f2bd96972c9 100644 (file)
@@ -17,11 +17,11 @@ description: |
 select:
   properties:
     $nodename:
-      pattern: "^watchdog(@.*|-[0-9a-f])?$"
+      pattern: "^watchdog(@.*|-([0-9]|[1-9][0-9]+))?$"
 
 properties:
   $nodename:
-    pattern: "^(timer|watchdog)(@.*|-[0-9a-f])?$"
+    pattern: "^(timer|watchdog)(@.*|-([0-9]|[1-9][0-9]+))?$"
 
   timeout-sec:
     description:
This page took 0.051728 seconds and 4 git commands to generate.