]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
dt-bindings: serial: fix regex pattern for matching serial node children
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Thu, 5 Oct 2023 09:32:46 +0000 (11:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Nov 2023 17:14:52 +0000 (17:14 +0000)
commitcc0ccee308e8d148ad13d3610d83cca58501fb6e
treed82ea96e963079b3d6a110447ba4cf963ea1653e
parent61576b7a0f28f924da06bead92a39a6d9aa2404a
dt-bindings: serial: fix regex pattern for matching serial node children

[ Upstream commit 42851dfd4dbe38e34724a00063a9fad5cfc48dcd ]

The regular expression pattern for matching serial node children should
accept only nodes starting and ending with the set of words: bluetooth,
gnss, gps or mcu.  Add missing brackets to enforce such matching.

Fixes: 0c559bc8abfb ("dt-bindings: serial: restrict possible child node names")
Reported-by: Andreas Kemnade <andreas@kemnade.info>
Closes: https://lore.kernel.org/all/20231004170021.36b32465@aktux/
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20231005093247.128166-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Documentation/devicetree/bindings/serial/serial.yaml