Skip to content

Commit 7e97611

Browse files
andy-shevlinusw
authored andcommitted
pinctrl: equilibrium: Convert to use grp member
Convert drivers to use grp member embedded in struct group_desc, because other members will be removed to avoid duplication and desynchronisation of the generic pin group description. Signed-off-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Linus Walleij <[email protected]>
1 parent 2a0674f commit 7e97611

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/pinctrl/pinctrl-equilibrium.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,8 +331,8 @@ static int eqbr_pinmux_set_mux(struct pinctrl_dev *pctldev,
331331
return -EINVAL;
332332

333333
pinmux = grp->data;
334-
for (i = 0; i < grp->num_pins; i++)
335-
eqbr_set_pin_mux(pctl, pinmux[i], grp->pins[i]);
334+
for (i = 0; i < grp->grp.npins; i++)
335+
eqbr_set_pin_mux(pctl, pinmux[i], grp->grp.pins[i]);
336336

337337
return 0;
338338
}

0 commit comments

Comments
 (0)