Skip to content

Commit

Permalink
schemas: gpio: Restrict HOG node name pattern to suffixes
Browse files Browse the repository at this point in the history
Bring some sort of uniformity by allowing only "-hog" suffix, not
prefix, for gpio-hog node names.

There is only one user of dropped prefix pattern in the Linux kernel
DTS, being fixed in patch:

https://lore.kernel.org/linux-devicetree/[email protected]/

Signed-off-by: Krzysztof Kozlowski <[email protected]>
  • Loading branch information
krzk authored and robherring committed Jan 22, 2025
1 parent bd5701e commit 6f17cbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dtschema/schemas/gpio/gpio-hog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ select:

properties:
$nodename:
pattern: "^(hog-[0-9]+|.+-hog(-[0-9]+)?)$"
pattern: "-hog(-[0-9]+)?$"

gpio-hog:
$ref: /schemas/types.yaml#/definitions/flag
Expand Down

0 comments on commit 6f17cbd

Please sign in to comment.