Commit 25b306c4 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Linus Walleij
Browse files

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: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: default avatarJ. Neuschäfer <j.ne@posteo.net>
Link: https://lore.kernel.org/20250611-pinctrl-const-desc-v2-6-b11c1d650384@linaro.org


Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent e3d0571b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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),
+1 −1
Original line number Diff line number Diff line
@@ -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),
+1 −1
Original line number Diff line number Diff line
@@ -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),