Messages in this thread | | | From | Andy Shevchenko <> | Date | Wed, 11 Oct 2023 18:18:43 +0300 | Subject | Re: [PATCH 1/3] gpiolib: provide gpio_device_to_device() |
| |
On Wed, Oct 11, 2023 at 4:02 PM Bartosz Golaszewski <brgl@bgdev.pl> wrote: > > From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> > > There are users in the kernel who need to retrieve the address of the > struct device backing the GPIO device. Currently they needlessly poke in > the internals of GPIOLIB. Add a dedicated getter function.
...
> +struct device *gpio_device_to_device(struct gpio_device *gdev)
Hmm... Maybe gpio_device_to_dev()?
Whatever, good enough to me Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
-- With Best Regards, Andy Shevchenko...
| |