Skip to content

Commit ec642ab

Browse files
committed
pinctrl: renesas: rzv2m: Fix type in .pin_config_group_get() callback
On 64-bit platforms, "unsigned long" is 64-bit. Hence checking if all "unsigned long" configuration values are equal should be done using an "unsigned long" temporary. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://patch.msgid.link/4bcb78b40d685b0aab8c3150d379240ffb765b37.1777562725.git.geert+renesas@glider.be
1 parent f246b6c commit ec642ab

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/pinctrl/renesas/pinctrl-rzv2m.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,8 +695,9 @@ static int rzv2m_pinctrl_pinconf_group_get(struct pinctrl_dev *pctldev,
695695
unsigned int group,
696696
unsigned long *config)
697697
{
698+
unsigned long prev_config = 0;
698699
const unsigned int *pins;
699-
unsigned int i, npins, prev_config = 0;
700+
unsigned int i, npins;
700701
int ret;
701702

702703
ret = pinctrl_generic_get_group_pins(pctldev, group, &pins, &npins);

0 commit comments

Comments
 (0)