You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
gpio: Use irq_desc_get_xxx() to avoid redundant lookup of irq_desc
Use irq_desc_get_xxx() to avoid redundant lookup of irq_desc while we already have a pointer to corresponding irq_desc. Preparatory patch for the removal of the 'irq' argument from irq flow handlers. Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Cc: Alexandre Courbot <gnurou@gmail.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
committed by
Thomas Gleixner
parent
c16edb8b3a
commit
476f8b4c94
@@ -268,16 +268,14 @@ static void tegra_gpio_irq_shutdown(struct irq_data *d)
|
||||
|
||||
static void tegra_gpio_irq_handler(unsigned int irq, struct irq_desc *desc)
|
||||
{
|
||||
struct tegra_gpio_bank *bank;
|
||||
int port;
|
||||
int pin;
|
||||
int unmasked = 0;
|
||||
struct irq_chip *chip = irq_desc_get_chip(desc);
|
||||
struct tegra_gpio_bank *bank = irq_desc_get_handler_data(desc);
|
||||
|
||||
chained_irq_enter(chip, desc);
|
||||
|
||||
bank = irq_get_handler_data(irq);
|
||||
|
||||
for (port = 0; port < 4; port++) {
|
||||
int gpio = tegra_gpio_compose(bank->bank, port, 0);
|
||||
unsigned long sta = tegra_gpio_readl(GPIO_INT_STA(gpio)) &
|
||||
|
||||
Reference in New Issue
Block a user