PCI: mobiveil: Use irq_data_get_irq_chip_data()
authorThomas Gleixner <tglx@linutronix.de>
Thu, 10 Dec 2020 19:25:55 +0000 (20:25 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 15 Dec 2020 15:19:33 +0000 (16:19 +0100)
commitb8fecfdfb08dcbabf3d46cfaf7c2fed0e6802ce8
treebd88bea983b38af191e739ccaa3b13eacf9a8418
parente56427068a8d796bb7b8e297f2b6e947380e383f
PCI: mobiveil: Use irq_data_get_irq_chip_data()

Going through a full irq descriptor lookup instead of just using the proper
helper function which provides direct access is suboptimal.

In fact it _is_ wrong because the chip callback needs to get the chip data
which is relevant for the chip while using the irq descriptor variant
returns the irq chip data of the top level chip of a hierarchy. It does not
matter in this case because the chip is the top level chip, but that
doesn't make it more correct.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Rob Herring <robh@kernel.org>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Link: https://lore.kernel.org/r/20201210194044.473308721@linutronix.de
drivers/pci/controller/mobiveil/pcie-mobiveil-host.c