Re: [PATCH v1] gpio: acpi: Add managed variant of acpi_dev_add_driver_gpios()

From: Andy Shevchenko
Date: Tue Mar 14 2017 - 08:27:15 EST


On Tue, 2017-03-14 at 10:58 +0100, Linus Walleij wrote:
> On Thu, Mar 2, 2017 at 2:48 PM, Andy Shevchenko
> <andriy.shevchenko@xxxxxxxxxxxxxxx> wrote:
>
> > Introduce device managed variant of acpi_dev_add_driver_gpios() and
> > its
> > counterpart acpi_dev_remove_driver_gpios().
> >
> > The functions in most cases are used in driver's ->probe() and
> > ->remove() callbacks, that's why it's useful to have managed variant
> > of
> > them.
> >
> > Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
> > ---
> >
> > This is supposed to go through GPIO tree.
> >
> > Linus, can you create an immutable branch that other subsystems can
> > use
> > it if needed?
>
> I have created ib-acpi-devm in the GPIO tree based on v4.11-rc1,
> applied
> this patch and merged that into my devel branch.
>
> Anyone who needs it can grab that branch, I will push it out later.

Thanks!

--
Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
Intel Finland Oy