Re: [PATCH 1/3] gpiolib: provide gpio_device_to_device()
From: Andy Shevchenko
Date: Wed Oct 11 2023 - 11:19:23 EST
On Wed, Oct 11, 2023 at 4:02 PM Bartosz Golaszewski <brgl@xxxxxxxx> wrote:
>
> From: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>
>
> 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@xxxxxxxxx>
--
With Best Regards,
Andy Shevchenko...