diff mbox series

[v1,1/1] pinctrl: nuvoton: Constify wpcm450_groups

Message ID 20231211154239.4190429-1-andriy.shevchenko@linux.intel.com
State Accepted
Commit 1a7a7aa1e4250da2971d1ff352cec7e5419af4dc
Headers show
Series [v1,1/1] pinctrl: nuvoton: Constify wpcm450_groups | expand

Commit Message

Andy Shevchenko Dec. 11, 2023, 3:42 p.m. UTC
There is no modifications are assumed for wpcm450_groups. Constify it.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/pinctrl/nuvoton/pinctrl-wpcm450.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Andy Shevchenko Feb. 1, 2024, 2:57 p.m. UTC | #1
On Mon, Dec 11, 2023 at 05:42:39PM +0200, Andy Shevchenko wrote:
> There is no modifications are assumed for wpcm450_groups. Constify it.

Linus, can this be applied?
Linus Walleij Feb. 7, 2024, 10:47 a.m. UTC | #2
On Mon, Dec 11, 2023 at 4:42 PM Andy Shevchenko
<andriy.shevchenko@linux.intel.com> wrote:

> There is no modifications are assumed for wpcm450_groups. Constify it.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

Patch applied, thanks for reminding me, I must have missed it.

Yours,
Linus Walleij
diff mbox series

Patch

diff --git a/drivers/pinctrl/nuvoton/pinctrl-wpcm450.c b/drivers/pinctrl/nuvoton/pinctrl-wpcm450.c
index 4589900244c7..cdad4ef11a2f 100644
--- a/drivers/pinctrl/nuvoton/pinctrl-wpcm450.c
+++ b/drivers/pinctrl/nuvoton/pinctrl-wpcm450.c
@@ -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