Skip to content

Commit 3ca083f

Browse files
geertulinusw
authored andcommitted
pinctrl: mediatek: moore: 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> Signed-off-by: Linus Walleij <linusw@kernel.org>
1 parent 2892054 commit 3ca083f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/pinctrl/mediatek/pinctrl-moore.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,8 @@ static int mtk_pinconf_group_get(struct pinctrl_dev *pctldev,
402402
unsigned int group, unsigned long *config)
403403
{
404404
const unsigned int *pins;
405-
unsigned int i, npins, old = 0;
405+
unsigned int i, npins;
406+
unsigned long old = 0;
406407
int ret;
407408

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

0 commit comments

Comments
 (0)