[PATCH 5/7] pinctrl: renesas: rzg2l: Fix type in .pin_config_group_get() callback

Geert Uytterhoeven
2026-04-30T15:34:08Z

drivers/pinctrl/renesas/pinctrl-rzg2l.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/pinctrl/renesas/pinctrl-rzg2l.c b/drivers/pinctrl/renesas/pinctrl-rzg2l.c
index bc2154b695149809..5b0f23af5a6cc9de 100644
--- a/drivers/pinctrl/renesas/pinctrl-rzg2l.c
+++ b/drivers/pinctrl/renesas/pinctrl-rzg2l.c
@@ -1647,8 +1647,9 @@ static int rzg2l_pinctrl_pinconf_group_get(struct pinctrl_dev *pctldev,
unsigned int group,
unsigned long *config)
{
+ unsigned long prev_config = 0;
const unsigned int *pins;
- unsigned int i, npins, prev_config = 0;
+ unsigned int i, npins;
int ret;