Re: Is consumer documentation correct?

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

 



On Fri, Oct 30, 2020 at 4:26 PM Andy Shevchenko
<andy.shevchenko@xxxxxxxxx> wrote:
> On Fri, Oct 30, 2020 at 4:16 PM Alexandre Courbot <gnurou@xxxxxxxxx> wrote:
> > On Thu, Oct 29, 2020 at 10:50 PM Linus Walleij <linus.walleij@xxxxxxxxxx> wrote:

...

> > As for "and usage of the returned GPIO descriptor is only possible
> > after the GPIO number has been released", I am a bit puzzled.

So does the OP of [1].
Have you had a chance to read that?

> My
> > understanding is that the descriptor is only guaranteed to be valid
> > between calls to gpio_request() and gpio_free(), so that's probably a
> > mistake here?

Sounds like this and my investigation tells me that this mistake is a
result of the global array removal w/o updating documentation part.

> Funny thing is that it is you who is the author of fd8e198cfcaa
> ("Documentation: gpiolib: document new interface"). Or am I mistaken?
>
> Perhaps you can send a follow up to amend that chapter?

[1]: https://stackoverflow.com/q/64455505/2511795

-- 
With Best Regards,
Andy Shevchenko



[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