Re: [PATCH v2 08/13] pinctrl: intel: Introduce for_each_requested_gpio() macro

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux