]> git.baikalelectronics.ru Git - kernel.git/commit
gpiolib / ACPI: allow passing GPIOF_ACTIVE_LOW for GpioInt resources
authorMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 10 Oct 2013 08:01:10 +0000 (11:01 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Sat, 19 Oct 2013 21:32:14 +0000 (23:32 +0200)
commitd429f159172c59b9dfc17c935df86f5d9e6796db
tree656695ddd5ab89bf661b5d1a721d3f086328fcea
parent95f46f94e40592048c792b096bf30f52793dd831
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>
drivers/gpio/gpiolib-acpi.c
drivers/gpio/gpiolib.c
include/linux/acpi_gpio.h