pinctrl: stm32: Constify static 'pinctrl_desc'

The local static 'struct pinctrl_desc' is not modified, so can be made
const for code safety.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/20250818142402.132008-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
Krzysztof Kozlowski 2025-08-18 16:24:03 +02:00 committed by Linus Walleij
parent fe2e8f17a5
commit b8dc230254

View File

@ -576,7 +576,7 @@ static const struct pinmux_ops stm32_hdp_pinmux_ops = {
.gpio_set_direction = NULL,
};
static struct pinctrl_desc stm32_hdp_pdesc = {
static const struct pinctrl_desc stm32_hdp_pdesc = {
.name = DRIVER_NAME,
.pins = stm32_hdp_pins,
.npins = ARRAY_SIZE(stm32_hdp_pins),