]> www.infradead.org Git - users/jedix/linux-maple.git/commit
irqchip/armada-370-xp: Refactor mpic_handle_msi_irq() code
authorMarek Behún <kabel@kernel.org>
Thu, 11 Jul 2024 11:57:47 +0000 (13:57 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 30 Jul 2024 11:35:47 +0000 (13:35 +0200)
commit63697bc7199ee2bacc8324b59951046a7b3ea991
tree250f072bcf07a70ad15029c0e2b5eb480029215a
parent92128c74e41868e42e6944f83d9d2130c9aa8a22
irqchip/armada-370-xp: Refactor mpic_handle_msi_irq() code

Refactor the mpic_handle_msi_irq() function to make it simpler:
- drop the function arguments, they are not needed
- rename the variable holding the doorbell cause register to "cause"
- rename the iterating variable to "i"
- use for_each_set_bit() (requires retyping "cause" to unsigned long)

Signed-off-by: Marek Behún <kabel@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/all/20240711115748.30268-10-kabel@kernel.org
drivers/irqchip/irq-armada-370-xp.c