aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMika Westerberg <mika.westerberg@linux.intel.com>2013-10-10 04:01:10 -0400
committerLinus Walleij <linus.walleij@linaro.org>2013-10-19 17:32:14 -0400
commite01f440a689aeb2d0e81c696fe2069f8d01d5d49 (patch)
tree656695ddd5ab89bf661b5d1a721d3f086328fcea /include
parent81f59e9d138c3ba0bd0f97d4e14f856d987e3f1d (diff)
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.h2
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 @@
10/** 10/**
11 * struct acpi_gpio_info - ACPI GPIO specific information 11 * struct acpi_gpio_info - ACPI GPIO specific information
12 * @gpioint: if %true this GPIO is of type GpioInt otherwise type is GpioIo 12 * @gpioint: if %true this GPIO is of type GpioInt otherwise type is GpioIo
13 * @active_low: in case of @gpioint, the pin is active low
13 */ 14 */
14struct acpi_gpio_info { 15struct acpi_gpio_info {
15 bool gpioint; 16 bool gpioint;
17 bool active_low;
16}; 18};
17 19
18#ifdef CONFIG_GPIO_ACPI 20#ifdef CONFIG_GPIO_ACPI