diff options
author | Mika Westerberg <mika.westerberg@linux.intel.com> | 2014-03-10 13:54:51 +0100 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2014-03-13 15:14:16 +0100 |
commit | aa92b6f689acf159120ce0753f36100c3b190b4d (patch) | |
tree | c6cc39b0910489fb023d9bfeef6fa42d0d63faa5 /drivers/gpio/gpio-cs5535.c | |
parent | gpiolib: Allow GPIO chips to request their own GPIOs (diff) | |
download | linux-aa92b6f689acf159120ce0753f36100c3b190b4d.tar.xz linux-aa92b6f689acf159120ce0753f36100c3b190b4d.zip |
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>
Diffstat (limited to 'drivers/gpio/gpio-cs5535.c')
0 files changed, 0 insertions, 0 deletions