From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754013AbbG2ITL (ORCPT ); Wed, 29 Jul 2015 04:19:11 -0400 Received: from terminus.zytor.com ([198.137.202.10]:57124 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753389AbbG2ISX (ORCPT ); Wed, 29 Jul 2015 04:18:23 -0400 Date: Wed, 29 Jul 2015 01:18:13 -0700 From: tip-bot for Jiang Liu Message-ID: Cc: tglx@linutronix.de, hpa@zytor.com, mingo@kernel.org, linux-kernel@vger.kernel.org, jiang.liu@linux.intel.com, gregkh@linuxfoundation.org Reply-To: tglx@linutronix.de, hpa@zytor.com, mingo@kernel.org, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, jiang.liu@linux.intel.com In-Reply-To: <20150713151750.915477120@linutronix.de> References: <20150713151750.915477120@linutronix.de> To: linux-tip-commits@vger.kernel.org Subject: [tip:irq/core] spmi/pmic: Use irq_desc_get_xxx() to avoid redundant lookup of irq_desc Git-Commit-ID: 7fe88f3c00e7bfa44421681640fab3a9fadfef3b X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 7fe88f3c00e7bfa44421681640fab3a9fadfef3b Gitweb: http://git.kernel.org/tip/7fe88f3c00e7bfa44421681640fab3a9fadfef3b Author: Jiang Liu AuthorDate: Mon, 13 Jul 2015 20:52:25 +0000 Committer: Ingo Molnar CommitDate: Wed, 29 Jul 2015 10:08:10 +0200 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 Cc: Greg Kroah-Hartman Link: http://lkml.kernel.org/r/20150713151750.915477120@linutronix.de Signed-off-by: Thomas Gleixner Signed-off-by: Ingo Molnar --- drivers/spmi/spmi-pmic-arb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic-arb.c index db2aac1..4839484 100644 --- a/drivers/spmi/spmi-pmic-arb.c +++ b/drivers/spmi/spmi-pmic-arb.c @@ -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;