From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Basavaraj Natikar <Basavaraj.Natikar@amd.com>
Cc: Shyam-sundar.S-k@amd.com, linus.walleij@linaro.org,
linux-gpio@vger.kernel.org, mika.westerberg@linux.intel.com
Subject: Re: [PATCH v3 2/6] pinctrl: amd: Remove amd_pingroup and use pingroup
Date: Tue, 31 May 2022 13:21:38 +0300 [thread overview]
Message-ID: <YpXsMjNuvoBqXENC@smile.fi.intel.com> (raw)
In-Reply-To: <20220531084322.1310250-3-Basavaraj.Natikar@amd.com>
On Tue, May 31, 2022 at 02:13:18PM +0530, Basavaraj Natikar wrote:
> Remove 'struct amd_pingroup' and instead use 'struct pingroup'.
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> Signed-off-by: Basavaraj Natikar <Basavaraj.Natikar@amd.com>
> ---
> drivers/pinctrl/pinctrl-amd.h | 10 ++--------
> 1 file changed, 2 insertions(+), 8 deletions(-)
>
> diff --git a/drivers/pinctrl/pinctrl-amd.h b/drivers/pinctrl/pinctrl-amd.h
> index 1d4317073654..551dfa664ed8 100644
> --- a/drivers/pinctrl/pinctrl-amd.h
> +++ b/drivers/pinctrl/pinctrl-amd.h
> @@ -74,12 +74,6 @@
>
> #define CLR_INTR_STAT 0x1UL
>
> -struct amd_pingroup {
> - const char *name;
> - const unsigned *pins;
> - unsigned npins;
> -};
> -
> struct amd_function {
> const char *name;
> const char * const *groups;
> @@ -90,7 +84,7 @@ struct amd_gpio {
> raw_spinlock_t lock;
> void __iomem *base;
>
> - const struct amd_pingroup *groups;
> + const struct pingroup *groups;
> u32 ngroups;
> struct pinctrl_dev *pctrl;
> struct gpio_chip gc;
> @@ -296,7 +290,7 @@ static const unsigned i2c3_pins[] = {19, 20};
> static const unsigned uart0_pins[] = {135, 136, 137, 138, 139};
> static const unsigned uart1_pins[] = {140, 141, 142, 143, 144};
>
> -static const struct amd_pingroup kerncz_groups[] = {
> +static const struct pingroup kerncz_groups[] = {
> {
> .name = "i2c0",
> .pins = i2c0_pins,
> --
> 2.25.1
>
--
With Best Regards,
Andy Shevchenko
next prev parent reply other threads:[~2022-05-31 10:21 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-31 8:43 [PATCH v3 0/6] Enhancements to AMD pinctrl and implementation of AMD pinmux Basavaraj Natikar
2022-05-31 8:43 ` [PATCH v3 1/6] pinctrl: Add pingroup and define PINCTRL_GRP Basavaraj Natikar
2022-05-31 9:19 ` Andy Shevchenko
2022-05-31 14:05 ` Basavaraj Natikar
2022-05-31 18:47 ` Andy Shevchenko
2022-05-31 8:43 ` [PATCH v3 2/6] pinctrl: amd: Remove amd_pingroup and use pingroup Basavaraj Natikar
2022-05-31 10:21 ` Andy Shevchenko [this message]
2022-05-31 8:43 ` [PATCH v3 3/6] pinctrl: amd: Use PINCTRL_GRP to manage pingroups Basavaraj Natikar
2022-05-31 10:22 ` Andy Shevchenko
2022-05-31 8:43 ` [PATCH v3 4/6] pinctrl: amd: Define and use AMD_PINS macro Basavaraj Natikar
2022-05-31 10:23 ` Andy Shevchenko
2022-05-31 13:58 ` Basavaraj Natikar
2022-05-31 15:47 ` Andy Shevchenko
2022-05-31 8:43 ` [PATCH v3 5/6] pinctrl: amd: Add amd_get_iomux_res function Basavaraj Natikar
2022-05-31 10:26 ` Andy Shevchenko
2022-05-31 8:43 ` [PATCH v3 6/6] pinctrl: amd: Implement pinmux functionality Basavaraj Natikar
2022-05-31 10:32 ` Andy Shevchenko
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=YpXsMjNuvoBqXENC@smile.fi.intel.com \
--to=andriy.shevchenko@linux.intel.com \
--cc=Basavaraj.Natikar@amd.com \
--cc=Shyam-sundar.S-k@amd.com \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=mika.westerberg@linux.intel.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.