mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 18:13:41 +02:00
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:
parent
fe2e8f17a5
commit
b8dc230254
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user