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

parent
ee2a9f7f06
commit
e3a2e87893
@@ -138,7 +138,7 @@ static void unmask_giuint_low(struct irq_data *d)
|
||||
|
||||
static unsigned int startup_giuint(struct irq_data *data)
|
||||
{
|
||||
if (gpio_lock_as_irq(&vr41xx_gpio_chip, data->hwirq))
|
||||
if (gpiochip_lock_as_irq(&vr41xx_gpio_chip, data->hwirq))
|
||||
dev_err(vr41xx_gpio_chip.dev,
|
||||
"unable to lock HW IRQ %lu for IRQ\n",
|
||||
data->hwirq);
|
||||
@@ -150,7 +150,7 @@ static unsigned int startup_giuint(struct irq_data *data)
|
||||
static void shutdown_giuint(struct irq_data *data)
|
||||
{
|
||||
mask_giuint_low(data);
|
||||
gpio_unlock_as_irq(&vr41xx_gpio_chip, data->hwirq);
|
||||
gpiochip_unlock_as_irq(&vr41xx_gpio_chip, data->hwirq);
|
||||
}
|
||||
|
||||
static struct irq_chip giuint_low_irq_chip = {
|
||||
|
Reference in New Issue
Block a user