gpio: rename gpio_lock_as_irq to gpiochip_lock_as_irq
This function actually operates on a gpio_chip, so its prefix should reflect that fact for consistency with other functions defined in gpio/driver.h. Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:

committed by
Linus Walleij

szülő
ee2a9f7f06
commit
e3a2e87893
@@ -1472,7 +1472,7 @@ static unsigned int gpio_irq_startup(struct irq_data *d)
|
||||
unsigned pin = d->hwirq;
|
||||
int ret;
|
||||
|
||||
ret = gpio_lock_as_irq(&at91_gpio->chip, pin);
|
||||
ret = gpiochip_lock_as_irq(&at91_gpio->chip, pin);
|
||||
if (ret) {
|
||||
dev_err(at91_gpio->chip.dev, "unable to lock pind %lu IRQ\n",
|
||||
d->hwirq);
|
||||
@@ -1488,7 +1488,7 @@ static void gpio_irq_shutdown(struct irq_data *d)
|
||||
unsigned pin = d->hwirq;
|
||||
|
||||
gpio_irq_mask(d);
|
||||
gpio_unlock_as_irq(&at91_gpio->chip, pin);
|
||||
gpiochip_unlock_as_irq(&at91_gpio->chip, pin);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
|
Reference in New Issue
Block a user