[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHp75Vc838SyGSRfnHEj4925efOhH3WwjVkdnGR+_a2VF3Z6gw@mail.gmail.com>
Date: Tue, 14 Mar 2023 19:19:10 +0200
From: Andy Shevchenko <andy.shevchenko@...il.com>
To: Chester Lin <clin@...e.com>
Cc: Linus Walleij <linus.walleij@...aro.org>,
NXP S32 Linux Team <s32@....com>,
linux-gpio@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
Ghennadi Procopciuc <Ghennadi.Procopciuc@....nxp.com>,
Andrei Stefanescu <andrei.stefanescu@....com>,
Radu Pirea <radu-nicolae.pirea@....com>,
Andreas Färber <afaerber@...e.de>,
Matthias Brugger <mbrugger@...e.com>
Subject: Re: [PATCH 3/3] pinctrl: s32cc: embed generic struct pingroup and pinfunction
On Tue, Mar 14, 2023 at 3:47 PM Chester Lin <clin@...e.com> wrote:
>
> Use generic data structure to describe pin control functions and groups in
> S32 SoC family and drop duplicated struct members.
...
> struct s32_pmx_func {
> - const char *name;
> - const char **groups;
> - unsigned int num_groups;
> + struct pinfunction data;
> };
Since you have a single driver with this, just kill the entire custom
structure.
The way it's done in the pinctrl-intel.c is due to dozens of drivers
sharing the same data type and hence converting that will provoke
quite a noise for no benefit. Here it's not the case, so just kill it.
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists