Skip to content

Commit 9184557

Browse files
lategoodbyeherrnst
authored andcommitted
pinctrl: bcm2835: drop irq_enable/disable callbacks
commit db1b3ec upstream. The commit b8a1938 ("pinctrl: bcm2835: Fix support for threaded level triggered IRQs") assigned the irq_mask/unmask callbacks with the already existing functions for irq_enable/disable. The wasn't completely the right way (tm) to fix the issue, because these callbacks shouldn't be identical. So fix this by rename the functions to represent their intension and drop the unnecessary irq_enable/disable assigment. Suggested-by: Marc Zyngier <[email protected]> Signed-off-by: Stefan Wahren <[email protected]>
1 parent a94e92b commit 9184557

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

drivers/pinctrl/bcm/pinctrl-bcm2835.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ static void bcm2835_gpio_irq_config(struct bcm2835_pinctrl *pc,
507507
}
508508
}
509509

510-
static void bcm2835_gpio_irq_enable(struct irq_data *data)
510+
static void bcm2835_gpio_irq_unmask(struct irq_data *data)
511511
{
512512
struct gpio_chip *chip = irq_data_get_irq_chip_data(data);
513513
struct bcm2835_pinctrl *pc = gpiochip_get_data(chip);
@@ -522,7 +522,7 @@ static void bcm2835_gpio_irq_enable(struct irq_data *data)
522522
raw_spin_unlock_irqrestore(&pc->irq_lock[bank], flags);
523523
}
524524

525-
static void bcm2835_gpio_irq_disable(struct irq_data *data)
525+
static void bcm2835_gpio_irq_mask(struct irq_data *data)
526526
{
527527
struct gpio_chip *chip = irq_data_get_irq_chip_data(data);
528528
struct bcm2835_pinctrl *pc = gpiochip_get_data(chip);
@@ -695,12 +695,10 @@ static int bcm2835_gpio_irq_set_wake(struct irq_data *data, unsigned int on)
695695

696696
static struct irq_chip bcm2835_gpio_irq_chip = {
697697
.name = MODULE_NAME,
698-
.irq_enable = bcm2835_gpio_irq_enable,
699-
.irq_disable = bcm2835_gpio_irq_disable,
700698
.irq_set_type = bcm2835_gpio_irq_set_type,
701699
.irq_ack = bcm2835_gpio_irq_ack,
702-
.irq_mask = bcm2835_gpio_irq_disable,
703-
.irq_unmask = bcm2835_gpio_irq_enable,
700+
.irq_mask = bcm2835_gpio_irq_mask,
701+
.irq_unmask = bcm2835_gpio_irq_unmask,
704702
.irq_set_wake = bcm2835_gpio_irq_set_wake,
705703
.flags = IRQCHIP_MASK_ON_SUSPEND,
706704
};

0 commit comments

Comments
 (0)