pinctrl: bcm2835: Remove unneeded irq_group field
Subsystems (4)
PATCH 1/1 pinctrl: bcm2835: Remove unneeded irq_group field
From: Thierry Reding <[email protected]>
The irq_group field stores a 1:1 mapping. Use the loop variable to derive the values instead of storing them in an extra array.
--- drivers/pinctrl/bcm/pinctrl-bcm2835.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/pinctrl/bcm/pinctrl-bcm2835.c +1 -3
@@ -92,7 +92,6 @@ struct bcm2835_pinctrl {struct gpio_chip gpio_chip;struct pinctrl_gpio_range gpio_range; -int irq_group[BCM2835_NUM_IRQS ];spinlock_t irq_lock[BCM2835_NUM_BANKS ]; };
@@ -400,7 +399,7 @@ static void bcm2835_gpio_irq_handler(struct irq_desc *desc)for (i =0 ; i <ARRAY_SIZE (pc->irq); i++) {if (pc->irq[i] == irq) { - group = pc->irq_group[i]; + group = i;break ; } }
@@ -1047,7 +1046,6 @@ static int bcm2835_pinctrl_probe(struct platform_device *pdev)for (i =0 ; i <BCM2835_NUM_IRQS ; i++) { pc->irq[i] =irq_of_parse_and_map (np, i); - pc->irq_group[i] = i;if (pc->irq[i] ==0 )continue ;
Signature · 1 line
2.13.3
Quoted 6 lines · Thierry Reding
From: Thierry Reding <[email protected]>
The
irq_groupfield stores a 1:1 mapping. Use the loop variable to derive the values instead of storing them in an extra array.Signed-off-by Thierry Reding <[email protected]>
Quoted 9 lines · Thierry Reding
From: Thierry Reding <[email protected]>
The
irq_groupfield stores a 1:1 mapping. Use the loop variable to derive the values instead of storing them in an extra array.Signed-off-by Thierry Reding <[email protected]>--- drivers/pinctrl/bcm/pinctrl-bcm2835.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
Ping...
Thierry
Quoted 6 lines · Thierry Reding
From: Thierry Reding <[email protected]>
The
irq_groupfield stores a 1:1 mapping. Use the loop variable to derive the values instead of storing them in an extra array.Signed-off-by Thierry Reding <[email protected]>
Patch applied with Eric's review tag.
Yours,
Linus Walleij