]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dt-bindings: thermal: correct thermal zone node name limit
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Tue, 2 Jul 2024 14:52:48 +0000 (16:52 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 15 Jul 2024 11:31:39 +0000 (13:31 +0200)
commit97e32381d0fc6c2602a767b0c46e15eb2b75971d
tree267df7c341bd8c50f9148e589dd3006edf9d7f8e
parentb18ce693a26526603e104d95ce91040fd73e98a7
dt-bindings: thermal: correct thermal zone node name limit

Linux kernel uses thermal zone node name during registering thermal
zones and has a hard-coded limit of 20 characters, including terminating
NUL byte.  The bindings expect node names to finish with '-thermal'
which is eight bytes long, thus we have only 11 characters for the reset
of the node name (thus 10 for the pattern after leading fixed character).

Reported-by: Rob Herring <robh@kernel.org>
Closes: https://lore.kernel.org/all/CAL_JsqKogbT_4DPd1n94xqeHaU_J8ve5K09WOyVsRX3jxxUW3w@mail.gmail.com/
Fixes: 1202a442a31f ("dt-bindings: thermal: Add yaml bindings for thermal zones")
Cc: stable@vger.kernel.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240702145248.47184-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Documentation/devicetree/bindings/thermal/thermal-zones.yaml