From: Alexandre Courbot Date: Sun, 9 Feb 2014 08:43:55 +0000 (+0900) Subject: gpiolib: ACPI: remove gpio_to_desc() usage X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=390d82e312c56b75407a3606cbcde8c4bc7f10ae;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git gpiolib: ACPI: remove gpio_to_desc() usage gpio_to_desc() must die. Replace one of its usage by the newly-introduced gpiochip_get_desc() function. Signed-off-by: Alexandre Courbot Reviewed-by: Mika Westerberg Signed-off-by: Linus Walleij --- diff --git a/drivers/gpio/gpiolib-acpi.c b/drivers/gpio/gpiolib-acpi.c index 716ee9843110..b7db098ba060 100644 --- a/drivers/gpio/gpiolib-acpi.c +++ b/drivers/gpio/gpiolib-acpi.c @@ -60,7 +60,7 @@ static struct gpio_desc *acpi_get_gpiod(char *path, int pin) if (pin < 0 || pin > chip->ngpio) return ERR_PTR(-EINVAL); - return gpio_to_desc(chip->base + pin); + return gpiochip_get_desc(chip, pin); } static irqreturn_t acpi_gpio_irq_handler(int irq, void *data)