pinctrl: nuvoton: Constify wpcm450_groups
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 11 Dec 2023 15:42:39 +0000 (17:42 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 7 Feb 2024 10:46:02 +0000 (11:46 +0100)
There is no modifications are assumed for wpcm450_groups. Constify it.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20231211154239.4190429-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/nuvoton/pinctrl-wpcm450.c

index 4589900244c7990548015979a5182a236471b3e8..cdad4ef11a2f69dfe109b8c6a5999b0cf9ea3eb8 100644 (file)
@@ -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