gpio / ACPI: add ACPI support
authorMathias Nyman <mathias.nyman@linux.intel.com>
Fri, 30 Nov 2012 11:37:36 +0000 (12:37 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 30 Nov 2012 11:37:36 +0000 (12:37 +0100)
commite29482e8487954c87dc7b4fdbc53574bf1d4cce2
tree23b226e6ed38ad37a26a38b12662869195e0fb6a
parent752cad760b19e85926341880dc317a99f400eacc
gpio / ACPI: add ACPI support

Add support for translating ACPI GPIO pin numbers to Linux GPIO API pins.
Needs a gpio controller driver with the acpi handler hook set.

Drivers can use acpi_get_gpio() to translate ACPI5 GpioIO and GpioInt
resources to Linux GPIO's.

Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/gpio/Kconfig
drivers/gpio/Makefile
drivers/gpio/gpiolib-acpi.c [new file with mode: 0644]
include/linux/acpi_gpio.h [new file with mode: 0644]