mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
spmi/pmic: 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. Signed-off-by: Jiang Liu <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Thomas Gleixner <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
This commit is contained in:
parent
fb68ba6d0b
commit
7fe88f3c00
1 changed files with 2 additions and 2 deletions
|
|
@ -453,8 +453,8 @@ static void periph_interrupt(struct spmi_pmic_arb_dev *pa, u8 apid)
|
|||
|
||||
static void pmic_arb_chained_irq(unsigned int irq, struct irq_desc *desc)
|
||||
{
|
||||
struct spmi_pmic_arb_dev *pa = irq_get_handler_data(irq);
|
||||
struct irq_chip *chip = irq_get_chip(irq);
|
||||
struct spmi_pmic_arb_dev *pa = irq_desc_get_handler_data(desc);
|
||||
struct irq_chip *chip = irq_desc_get_chip(desc);
|
||||
void __iomem *intr = pa->intr;
|
||||
int first = pa->min_apid >> 5;
|
||||
int last = pa->max_apid >> 5;
|
||||
|
|
|
|||
Loading…
Reference in a new issue