Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

rtc: 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>
Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/20250611-pinctrl-const-desc-v2-17-b11c1d650384@linaro.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Krzysztof Kozlowski and committed by
Linus Walleij
5409d619 490bfd1c

+1 -1
+1 -1
drivers/rtc/rtc-stm32.c
··· 393 393 .strict = true, 394 394 }; 395 395 396 - static struct pinctrl_desc stm32_rtc_pdesc = { 396 + static const struct pinctrl_desc stm32_rtc_pdesc = { 397 397 .name = DRIVER_NAME, 398 398 .pins = stm32_rtc_pinctrl_pins, 399 399 .npins = ARRAY_SIZE(stm32_rtc_pinctrl_pins),