On Wed, Jun 11, 2025 at 08:13:38AM +0200, Krzysztof Kozlowski wrote: > The local static 'struct pinctrl_desc' is not modified, so can be made > const for code safety. > > Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxx> Reviewed-by: J. Neuschäfer <j.ne@xxxxxxxxxx> Thanks! > --- > drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c | 2 +- > drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c | 2 +- > drivers/pinctrl/nuvoton/pinctrl-wpcm450.c | 2 +- > 3 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c b/drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c > index dfd32feb34286b7a4d807e9033a11f507e277dce..b8872d8f5930ad931dad208afec4e08a23c3d653 100644 > --- a/drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c > +++ b/drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c > @@ -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), > diff --git a/drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c b/drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c > index be3db8ab406c416f0709d06eb864e33e3208541a..3c3b9d8d3681c64c21927615e1bb49f157f156b5 100644 > --- a/drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c > +++ b/drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c > @@ -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), > diff --git a/drivers/pinctrl/nuvoton/pinctrl-wpcm450.c b/drivers/pinctrl/nuvoton/pinctrl-wpcm450.c > index 4264ca749175a2ce0f3603c1d7aa271d98e6cd89..8d8314ba0e4cb55db2b1d3adf2de07e6fb93c279 100644 > --- a/drivers/pinctrl/nuvoton/pinctrl-wpcm450.c > +++ b/drivers/pinctrl/nuvoton/pinctrl-wpcm450.c > @@ -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), > > -- > 2.45.2 >