Mika Westerberg aa92b6f689 gpio / ACPI: Allocate ACPI specific data directly in acpi_gpiochip_add()
We are going to add more ACPI specific data to accompany GPIO chip so
instead of allocating it per each use-case we allocate it once when
acpi_gpiochip_add() is called and release it when acpi_gpiochip_remove() is
called.

Doing this allows us to add more ACPI specific data by merely adding new
fields to struct acpi_gpio_chip.

In addition we embed evt_pins member directly to the structure instead of
having it as a pointer. This simplifies the code a bit since we don't need
to check against NULL.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2014-03-13 15:14:16 +01:00
..
2013-10-29 18:26:14 -07:00
2013-12-12 14:28:12 +01:00
2012-11-28 11:39:59 -08:00
2013-12-04 14:48:17 +01:00
2013-08-16 15:24:35 +02:00
2012-11-28 11:39:33 -08:00
2014-01-21 10:09:12 -08:00
2014-01-21 10:09:12 -08:00
2013-08-16 15:24:35 +02:00
2013-08-16 15:24:35 +02:00
2013-12-09 14:04:37 +01:00
2012-11-28 11:39:59 -08:00
2013-06-17 07:47:33 +02:00
2013-12-12 14:33:14 +01:00
2014-03-12 15:54:54 +01:00