[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YkLp//IFvgohHycw@smile.fi.intel.com>
Date: Tue, 29 Mar 2022 14:14:07 +0300
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: Fabien DESSENNE <fabien.dessenne@...s.st.com>
Cc: Gregory CLEMENT <gregory.clement@...tlin.com>,
Geert Uytterhoeven <geert+renesas@...der.be>,
Linus Walleij <linus.walleij@...aro.org>,
linux-gpio@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-amlogic@...ts.infradead.org, linux-kernel@...r.kernel.org,
linux-renesas-soc@...r.kernel.org,
linux-stm32@...md-mailman.stormreply.com,
Neil Armstrong <narmstrong@...libre.com>,
Kevin Hilman <khilman@...libre.com>,
Jerome Brunet <jbrunet@...libre.com>,
Martin Blumenstingl <martin.blumenstingl@...glemail.com>,
Andrew Lunn <andrew@...n.ch>,
Sebastian Hesselbarth <sebastian.hesselbarth@...il.com>,
Maxime Coquelin <mcoquelin.stm32@...il.com>,
Alexandre Torgue <alexandre.torgue@...s.st.com>,
Bartosz Golaszewski <brgl@...ev.pl>
Subject: Re: [PATCH v1 2/5] pinctrl: stm32: Replace custom code by
gpiochip_count() call
On Tue, Mar 29, 2022 at 09:59:32AM +0200, Fabien DESSENNE wrote:
> On 25/03/2022 21:03, Andy Shevchenko wrote:
Thanks for review, my answers below.
> > - for_each_available_child_of_node(np, child)
>
> Here we look for "available" child, while the new generic helper
> gpiochip_count() looks for any child, available or not.
> Would it be possible to hav gpiochip_count() looking for available child as
> well?
It's done already that way. The fwnode loop is done against available children.
> It looks like there is '_available_' version of
> 'device_for_each_child_node', maybe this shall be added too.
No need.
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists