gpio: acpi: normalize use of gpiochip_get_desc()
authorAlexandre Courbot <acourbot@nvidia.com>
Tue, 19 Aug 2014 17:06:08 +0000 (10:06 -0700)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 29 Aug 2014 06:58:28 +0000 (08:58 +0200)
GPIO descriptors are changing from unique and permanent tokens to
allocated resources. Therefore gpiochip_get_desc() cannot be used as a
way to obtain a global GPIO descriptor anymore.

This patch updates the gpiolib ACPI support code to keep and use the
descriptor returned by a centralized call to gpiochip_get_desc().

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Tested-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib-acpi.c

Simple merge