Re: [PATCH v3 4/6] gpio / ACPI: register to ACPI events automatically

2014-01-08 Thread Mika Westerberg
On Tue, Jan 07, 2014 at 06:50:00PM +0100, Linus Walleij wrote: > On Tue, Nov 26, 2013 at 11:05 AM, Mika Westerberg > wrote: > > > Instead of asking each driver to register to ACPI events we can just call > > acpi_gpiochip_register_interrupts() for each chip that has an ACPI handle. > > The functi

Re: [PATCH v3 4/6] gpio / ACPI: register to ACPI events automatically

2014-01-07 Thread Linus Walleij
On Tue, Nov 26, 2013 at 11:05 AM, Mika Westerberg wrote: > Instead of asking each driver to register to ACPI events we can just call > acpi_gpiochip_register_interrupts() for each chip that has an ACPI handle. > The function checks chip->to_irq and if it is set to NULL (a GPIO driver > that doesn

[PATCH v3 4/6] gpio / ACPI: register to ACPI events automatically

2013-11-26 Thread Mika Westerberg
Instead of asking each driver to register to ACPI events we can just call acpi_gpiochip_register_interrupts() for each chip that has an ACPI handle. The function checks chip->to_irq and if it is set to NULL (a GPIO driver that doesn't do interrupts) the function does nothing. We also add the a new