diff options
author | Jiang Liu <jiang.liu@linux.intel.com> | 2015-07-13 22:44:56 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2015-08-11 16:09:06 +0200 |
commit | 1e84aa445893a608445af2fda5d8a03c0a86af84 (patch) | |
tree | 67f985987b744362b781cfab26e97f9d9a64fd13 /drivers/mfd/ezx-pcap.c | |
parent | mfd: tc6393xb: Consolidate chained IRQ handler install/remove (diff) | |
download | linux-1e84aa445893a608445af2fda5d8a03c0a86af84.tar.xz linux-1e84aa445893a608445af2fda5d8a03c0a86af84.zip |
mfd: 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.
Do the same change to avoid the pattern "irq_get_chip_data(data->irq)".
Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/ezx-pcap.c')
-rw-r--r-- | drivers/mfd/ezx-pcap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/ezx-pcap.c b/drivers/mfd/ezx-pcap.c index ab36802b008b..a76eb6ef47a0 100644 --- a/drivers/mfd/ezx-pcap.c +++ b/drivers/mfd/ezx-pcap.c @@ -207,7 +207,7 @@ static void pcap_isr_work(struct work_struct *work) static void pcap_irq_handler(unsigned int irq, struct irq_desc *desc) { - struct pcap_chip *pcap = irq_get_handler_data(irq); + struct pcap_chip *pcap = irq_desc_get_handler_data(desc); desc->irq_data.chip->irq_ack(&desc->irq_data); queue_work(pcap->workqueue, &pcap->isr_work); |