mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 10:04:04 +02:00
pinctrl: nuvoton: 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> Reviewed-by: J. Neuschäfer <j.ne@posteo.net> Link: https://lore.kernel.org/20250611-pinctrl-const-desc-v2-6-b11c1d650384@linaro.org Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
e3d0571bef
commit
25b306c484
|
|
@ -1817,7 +1817,7 @@ static const struct pinconf_ops npcm7xx_pinconf_ops = {
|
|||
};
|
||||
|
||||
/* pinctrl_desc */
|
||||
static struct pinctrl_desc npcm7xx_pinctrl_desc = {
|
||||
static const struct pinctrl_desc npcm7xx_pinctrl_desc = {
|
||||
.name = "npcm7xx-pinctrl",
|
||||
.pins = npcm7xx_pins,
|
||||
.npins = ARRAY_SIZE(npcm7xx_pins),
|
||||
|
|
|
|||
|
|
@ -2299,7 +2299,7 @@ static const struct pinconf_ops npcm8xx_pinconf_ops = {
|
|||
};
|
||||
|
||||
/* pinctrl_desc */
|
||||
static struct pinctrl_desc npcm8xx_pinctrl_desc = {
|
||||
static const struct pinctrl_desc npcm8xx_pinctrl_desc = {
|
||||
.name = "npcm8xx-pinctrl",
|
||||
.pins = npcm8xx_pins,
|
||||
.npins = ARRAY_SIZE(npcm8xx_pins),
|
||||
|
|
|
|||
|
|
@ -989,7 +989,7 @@ static const struct pinconf_ops wpcm450_pinconf_ops = {
|
|||
.pin_config_set = wpcm450_config_set,
|
||||
};
|
||||
|
||||
static struct pinctrl_desc wpcm450_pinctrl_desc = {
|
||||
static const struct pinctrl_desc wpcm450_pinctrl_desc = {
|
||||
.name = "wpcm450-pinctrl",
|
||||
.pins = wpcm450_pins,
|
||||
.npins = ARRAY_SIZE(wpcm450_pins),
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user