From: Andre Przywara <andre.przywara@arm.com>
To: Alastair D'Silva <alastair@d-silva.org>,
Linus Walleij <linusw@kernel.org>, Chen-Yu Tsai <wens@kernel.org>,
Jernej Skrabec <jernej.skrabec@gmail.com>,
Samuel Holland <samuel@sholland.org>
Cc: linux-gpio@vger.kernel.org, linux-sunxi@lists.linux.dev,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] pinctrl: sunxi: Drop unused parameter from sunxi_grp_config_reg()
Date: Thu, 26 Nov 2026 12:02:59 +0000 [thread overview]
Message-ID: <0defdc40-a96c-4df3-aadf-3c3db3c48b7d@arm.com> (raw)
In-Reply-To: <20261126104954.441427-1-alastair@d-silva.org>
Hi,
On 11/26/26 11:49, Alastair D'Silva wrote:
> sunxi_grp_config_reg() takes a pctl parameter that is never used.
> Drop it to match the original signature.
Ah yeah, looks like a development artefact. It's indeed not needed, so
changing it back to where it was makes complete sense.
> Fixes: 8b367fc08be4 ("pinctrl: sunxi: refactor IRQ register accessors")
> Assisted-by: LLM
> Signed-off-by: Alastair D'Silva <alastair@d-silva.org>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Cheers,
Andre
> ---
> drivers/pinctrl/sunxi/pinctrl-sunxi.c | 5 ++---
> drivers/pinctrl/sunxi/pinctrl-sunxi.h | 3 +--
> 2 files changed, 3 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/pinctrl/sunxi/pinctrl-sunxi.c b/drivers/pinctrl/sunxi/pinctrl-sunxi.c
> index bf4ec4665e2b..d30a562315aa 100644
> --- a/drivers/pinctrl/sunxi/pinctrl-sunxi.c
> +++ b/drivers/pinctrl/sunxi/pinctrl-sunxi.c
> @@ -763,10 +763,9 @@ static int sunxi_pinctrl_set_io_bias_cfg(struct sunxi_pinctrl *pctl,
> else
> val = 0xD; /* 3.3V */
>
> - reg = readl(pctl->membase + sunxi_grp_config_reg(pctl, pin));
> + reg = readl(pctl->membase + sunxi_grp_config_reg(pin));
> reg &= ~IO_BIAS_MASK;
> - writel(reg | val, pctl->membase +
> - sunxi_grp_config_reg(pctl, pin));
> + writel(reg | val, pctl->membase + sunxi_grp_config_reg(pin));
> return 0;
> case BIAS_VOLTAGE_PIO_POW_MODE_CTL_INV:
> inverted = true;
> diff --git a/drivers/pinctrl/sunxi/pinctrl-sunxi.h b/drivers/pinctrl/sunxi/pinctrl-sunxi.h
> index 7c2f29e75519..3060cef3705d 100644
> --- a/drivers/pinctrl/sunxi/pinctrl-sunxi.h
> +++ b/drivers/pinctrl/sunxi/pinctrl-sunxi.h
> @@ -328,8 +328,7 @@ static inline u32 sunxi_irq_status_offset(u16 irq)
> return irq_num * IRQ_STATUS_IRQ_BITS;
> }
>
> -static inline u32 sunxi_grp_config_reg(const struct sunxi_pinctrl *pctl,
> - u16 pin)
> +static inline u32 sunxi_grp_config_reg(u16 pin)
> {
> u8 bank = pin / PINS_PER_BANK;
>
next prev parent reply other threads:[~2026-11-26 12:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 10:49 [PATCH] pinctrl: sunxi: Drop unused parameter from sunxi_grp_config_reg() Alastair D'Silva
2026-11-26 12:02 ` Andre Przywara [this message]
2026-11-26 17:35 ` Jernej Škrabec
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0defdc40-a96c-4df3-aadf-3c3db3c48b7d@arm.com \
--to=andre.przywara@arm.com \
--cc=alastair@d-silva.org \
--cc=jernej.skrabec@gmail.com \
--cc=linusw@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sunxi@lists.linux.dev \
--cc=samuel@sholland.org \
--cc=wens@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox