diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2023-12-11 20:58:04 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2023-12-12 00:47:52 +0100 |
commit | fc7d3b60a8fd9f7ee07f7f6cb015819da18d0113 (patch) | |
tree | cca04a97d43ba2d1e379411a30e0044b172c60f2 /drivers/pinctrl/renesas/pinctrl-rza2.c | |
parent | a1cf1a5f9b60fbccd96b24ec295e50a84cc0c503 (diff) | |
download | lwn-fc7d3b60a8fd9f7ee07f7f6cb015819da18d0113.tar.gz lwn-fc7d3b60a8fd9f7ee07f7f6cb015819da18d0113.zip |
pinctrl: renesas: 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.
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20231211190321.307330-12-andriy.shevchenko@linux.intel.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/renesas/pinctrl-rza2.c')
-rw-r--r-- | drivers/pinctrl/renesas/pinctrl-rza2.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/pinctrl/renesas/pinctrl-rza2.c b/drivers/pinctrl/renesas/pinctrl-rza2.c index 990b96d45967..af689d7c117f 100644 --- a/drivers/pinctrl/renesas/pinctrl-rza2.c +++ b/drivers/pinctrl/renesas/pinctrl-rza2.c @@ -447,15 +447,15 @@ static int rza2_set_mux(struct pinctrl_dev *pctldev, unsigned int selector, psel_val = func->data; - for (i = 0; i < grp->num_pins; ++i) { + for (i = 0; i < grp->grp.npins; ++i) { dev_dbg(priv->dev, "Setting P%c_%d to PSEL=%d\n", - port_names[RZA2_PIN_ID_TO_PORT(grp->pins[i])], - RZA2_PIN_ID_TO_PIN(grp->pins[i]), + port_names[RZA2_PIN_ID_TO_PORT(grp->grp.pins[i])], + RZA2_PIN_ID_TO_PIN(grp->grp.pins[i]), psel_val[i]); rza2_set_pin_function( priv->base, - RZA2_PIN_ID_TO_PORT(grp->pins[i]), - RZA2_PIN_ID_TO_PIN(grp->pins[i]), + RZA2_PIN_ID_TO_PORT(grp->grp.pins[i]), + RZA2_PIN_ID_TO_PIN(grp->grp.pins[i]), psel_val[i]); } |