Skip to content

Commit 2a0674f

Browse files
andy-shevlinusw
authored andcommitted
pinctrl: bcm: 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. Tested-by: Florian Fainelli <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Linus Walleij <[email protected]>
1 parent 85174ad commit 2a0674f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/pinctrl/bcm/pinctrl-ns.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ static int ns_pinctrl_set_mux(struct pinctrl_dev *pctrl_dev,
171171
if (!group)
172172
return -EINVAL;
173173

174-
for (i = 0; i < group->num_pins; i++)
175-
unset |= BIT(group->pins[i]);
174+
for (i = 0; i < group->grp.npins; i++)
175+
unset |= BIT(group->grp.pins[i]);
176176

177177
tmp = readl(ns_pinctrl->base);
178178
tmp &= ~unset;

0 commit comments

Comments
 (0)