Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752753AbbFZT4F (ORCPT ); Fri, 26 Jun 2015 15:56:05 -0400 Received: from terminus.zytor.com ([198.137.202.10]:60183 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751986AbbFZTzz (ORCPT ); Fri, 26 Jun 2015 15:55:55 -0400 Date: Fri, 26 Jun 2015 12:50:04 -0700 From: tip-bot for Jiang Liu Message-ID: Cc: marc.zyngier@arm.com, bp@alien8.de, tony.luck@intel.com, konrad.wilk@oracle.com, yinghai@kernel.org, bhelgaas@google.com, benh@kernel.crashing.org, jiang.liu@linux.intel.com, linux-kernel@vger.kernel.org, rdunlap@infradead.org, mingo@kernel.org, tglx@linutronix.de, hpa@zytor.com Reply-To: hpa@zytor.com, tglx@linutronix.de, mingo@kernel.org, rdunlap@infradead.org, linux-kernel@vger.kernel.org, jiang.liu@linux.intel.com, tony.luck@intel.com, bp@alien8.de, marc.zyngier@arm.com, bhelgaas@google.com, benh@kernel.crashing.org, yinghai@kernel.org, konrad.wilk@oracle.com In-Reply-To: <1433391238-19471-17-git-send-email-jiang.liu@linux.intel.com> References: <1433391238-19471-17-git-send-email-jiang.liu@linux.intel.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:irq/urgent] genirq: Introduce helper irq_desc_get_irq() Git-Commit-ID: 304adf8a8fff972f633bf52b3d160682d3f3d5d2 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 Content-Length: 1770 Lines: 48 Commit-ID: 304adf8a8fff972f633bf52b3d160682d3f3d5d2 Gitweb: http://git.kernel.org/tip/304adf8a8fff972f633bf52b3d160682d3f3d5d2 Author: Jiang Liu AuthorDate: Thu, 4 Jun 2015 12:13:26 +0800 Committer: Thomas Gleixner CommitDate: Fri, 26 Jun 2015 21:28:32 +0200 genirq: Introduce helper irq_desc_get_irq() Introduce helper irq_desc_get_irq() to retrieve the irq number from the irq descriptor. Signed-off-by: Jiang Liu Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Randy Dunlap Cc: Yinghai Lu Cc: Borislav Petkov Cc: Marc Zyngier Link: http://lkml.kernel.org/r/1433391238-19471-17-git-send-email-jiang.liu@linux.intel.com Signed-off-by: Thomas Gleixner --- include/linux/irqdesc.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/linux/irqdesc.h b/include/linux/irqdesc.h index 66c41b4..a72bfd9 100644 --- a/include/linux/irqdesc.h +++ b/include/linux/irqdesc.h @@ -100,6 +100,11 @@ static inline struct irq_desc *irq_data_to_desc(struct irq_data *data) #endif } +static inline unsigned int irq_desc_get_irq(struct irq_desc *desc) +{ + return desc->irq_data.irq; +} + static inline struct irq_data *irq_desc_get_irq_data(struct irq_desc *desc) { return &desc->irq_data; -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/