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)
commite46cf32ced90d00972d5c3d9322cdb848d183338
tree3fe5b06cd1e7f0bb2facb47b2fbcff0b71136d8e
parent5a2533a7478334593c50284fd414c70b3b9217c0
gpio: acpi: normalize use of gpiochip_get_desc()

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