]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
gpiolib / ACPI: convert to gpiod interfaces
authorMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 10 Oct 2013 08:01:08 +0000 (11:01 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Sat, 19 Oct 2013 21:30:51 +0000 (23:30 +0200)
commit936e15dd2128eb5aa71251766f1176552b45f43c
tree43443f12206375f6a1503c0924c7864ada8c67a4
parentbae48da237fcedd7ad09569025483b988635efb7
gpiolib / ACPI: convert to gpiod interfaces

The new GPIO descriptor based interface is now preferred over the old
integer based one. This patch converts the ACPI GPIO helpers to use this
new interface internally. In addition to that provide compatibility
function acpi_get_gpio_by_index() that converts the returned GPIO
descriptor to an integer.

We also drop acpi_get_gpio() as it is not used anywhere outside
gpiolib-acpi and even there we use acpi_get_gpiod() instead.

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
include/linux/acpi_gpio.h