diff options
author | Mika Westerberg <mika.westerberg@linux.intel.com> | 2013-10-10 10:01:10 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-10-19 23:32:14 +0200 |
commit | e01f440a689aeb2d0e81c696fe2069f8d01d5d49 (patch) | |
tree | 656695ddd5ab89bf661b5d1a721d3f086328fcea /include | |
parent | gpiolib / ACPI: add ACPI support for gpiod_get_index() (diff) | |
download | linux-e01f440a689aeb2d0e81c696fe2069f8d01d5d49.tar.xz linux-e01f440a689aeb2d0e81c696fe2069f8d01d5d49.zip |
gpiolib / ACPI: allow passing GPIOF_ACTIVE_LOW for GpioInt resources
The ACPI GpioInt resources contain polarity field that is used to specify
whether the interrupt is active high or low. Since gpiolib supports
GPIOF_ACTIVE_LOW we can pass this information in the flags field in
acpi_find_gpio(), analogous to the DeviceTree version.
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/acpi_gpio.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/acpi_gpio.h b/include/linux/acpi_gpio.h index b6ce601e55a2..d875bc3dba3c 100644 --- a/include/linux/acpi_gpio.h +++ b/include/linux/acpi_gpio.h @@ -10,9 +10,11 @@ /** * struct acpi_gpio_info - ACPI GPIO specific information * @gpioint: if %true this GPIO is of type GpioInt otherwise type is GpioIo + * @active_low: in case of @gpioint, the pin is active low */ struct acpi_gpio_info { bool gpioint; + bool active_low; }; #ifdef CONFIG_GPIO_ACPI |