Re: [PATCH 06/21] gpiolib: provide gpiod_to_device()
Andy Shevchenko <[email protected]> Wed, 6 Sep 2023 17:17:48 +0300
| Newsgroups | dev.linux.lists.timestamp,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-acpi,org.kernel.vger.linux-gpio,org.kernel.vger.linux-kernel,org.kernel.vger.linux-omap,org.kernel.vger.linux-tegra,org.kernel.vger.platform-driver-x86 |
|---|---|
| Organization | Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo |
| Message-ID | <[email protected]> |
On Tue, Sep 05, 2023 at 08:52:54PM +0200, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski <[email protected]> > > struct gpio_desc is opaque so provide a way for users to retrieve the > underlying GPIO device. ... > +/** > + * gpiod_to_device() - Return the GPIO device owning this descriptor > + * @desc: GPIO descriptor > + * > + * Returns: > + * Pointer to the opaque struct gpio_device object. This function does not > + * increase the reference count of gpio_device. GPIO device. > + */ -- With Best Regards, Andy Shevchenko