Skip to contentSkip to conversation

pinctrl: nuvoton: Constify wpcm450_groups

PATCH In review Andy Shevchenko 2 participants 3 messages Dec 11, 2023 – Feb 7, 2024

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pinctrl: nuvoton: Constify wpcm450_groups

There is no modifications are assumed for wpcm450_groups. Constify it.

---
 drivers/pinctrl/nuvoton/pinctrl-wpcm450.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pinctrl/nuvoton/pinctrl-wpcm450.c +1 -1
index 4589900244c7..cdad4ef11a2f 100644
@@ -474,7 +474,7 @@ enum {
 #undef WPCM450_GRP
 };
 
-static struct pingroup wpcm450_groups[] = {
+static const struct pingroup wpcm450_groups[] = {
 #define WPCM450_GRP(x) PINCTRL_PINGROUP(#x, x ## _pins, ARRAY_SIZE(x ## _pins))
 	WPCM450_GRPS
 #undef WPCM450_GRP
Signature · 1 line
2.43.0.rc1.1.gbec44491f096
#1 lore raw
Quoted 1 line · Andy Shevchenko

There is no modifications are assumed for wpcm450_groups. Constify it.

Linus, can this be applied?

Signature · 2 lines
With Best Regards,
Andy Shevchenko