mirror of https://github.com/torvalds/linux.git
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>
This commit is contained in:
parent
490bfd1ca5
commit
5409d619f1
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in New Issue