aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-stm32.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <[email protected]>2025-06-11 06:13:49 +0000
committerLinus Walleij <[email protected]>2025-06-18 11:26:37 +0000
commit5409d619f127cf121e572046aa6e2ed81c98d9bb (patch)
tree7e330dffadaeb851a51387322cb5ba0f578b9bee /drivers/rtc/rtc-stm32.c
parentpinctrl: Constify static 'pinctrl_desc' (diff)
downloadkernel-5409d619f127cf121e572046aa6e2ed81c98d9bb.tar.gz
kernel-5409d619f127cf121e572046aa6e2ed81c98d9bb.zip
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 <[email protected]> Acked-by: Alexandre Belloni <[email protected]> Link: https://lore.kernel.org/[email protected] Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'drivers/rtc/rtc-stm32.c')
-rw-r--r--drivers/rtc/rtc-stm32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-stm32.c b/drivers/rtc/rtc-stm32.c
index ef8fb88aab48..d4ebf3eb54aa 100644
--- a/drivers/rtc/rtc-stm32.c
+++ b/drivers/rtc/rtc-stm32.c
@@ -393,7 +393,7 @@ static const struct pinmux_ops stm32_rtc_pinmux_ops = {
.strict = true,
};
-static struct pinctrl_desc stm32_rtc_pdesc = {
+static const struct pinctrl_desc stm32_rtc_pdesc = {
.name = DRIVER_NAME,
.pins = stm32_rtc_pinctrl_pins,
.npins = ARRAY_SIZE(stm32_rtc_pinctrl_pins),