提交 390d82e3 编写于 作者: A Alexandre Courbot 提交者: Linus Walleij

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: NAlexandre Courbot <acourbot@nvidia.com>
Reviewed-by: NMika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
上级 bb1e88cc
...@@ -60,7 +60,7 @@ static struct gpio_desc *acpi_get_gpiod(char *path, int pin) ...@@ -60,7 +60,7 @@ static struct gpio_desc *acpi_get_gpiod(char *path, int pin)
if (pin < 0 || pin > chip->ngpio) if (pin < 0 || pin > chip->ngpio)
return ERR_PTR(-EINVAL); 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) static irqreturn_t acpi_gpio_irq_handler(int irq, void *data)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册