On Mon, Jun 15, 2020 at 2:01 PM Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> wrote: > On Mon, Jun 15, 2020 at 02:59:27PM +0300, Mika Westerberg wrote: > > On Fri, Jun 12, 2020 at 05:50:01PM +0300, Andy Shevchenko wrote: > > > Introduce for_each_requested_gpio() macro which helps to iterate > > > over requested GPIO in a range. > > > > > > Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> > > > --- > > > drivers/pinctrl/intel/pinctrl-intel.h | 4 ++++ > > > 1 file changed, 4 insertions(+) > > > > > > diff --git a/drivers/pinctrl/intel/pinctrl-intel.h b/drivers/pinctrl/intel/pinctrl-intel.h > > > index 4e17308d33e9..c1f312bc28eb 100644 > > > --- a/drivers/pinctrl/intel/pinctrl-intel.h > > > +++ b/drivers/pinctrl/intel/pinctrl-intel.h > > > @@ -249,4 +249,8 @@ const struct dev_pm_ops _name = { \ > > > intel_pinctrl_resume_noirq) \ > > > } > > > > > > > kernel-doc would be good to have here. > > Okay, actually I considered to have this in the gpio/driver.h or so. Please put it there! It looks generally useful. Yours, Linus Walleij