Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1299377 > unrolled thread

[PATCH 1/2] irqchip: zevio: use irq_data_get_chip_type

Started byGeliang Tang <geliangtang@163.com>
First post2015-12-30 15:20 +0100
Last post2015-12-30 18:40 +0100
Articles 3 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH 1/2] irqchip: zevio: use irq_data_get_chip_type Geliang Tang <geliangtang@163.com> - 2015-12-30 15:20 +0100
    [PATCH 2/2] gpio: davinci: use irq_data_get_chip_type Geliang Tang <geliangtang@163.com> - 2015-12-30 15:20 +0100
    [tip:irq/core] irqchip/zevio: Use irq_data_get_chip_type() helper tip-bot for Geliang Tang <tipbot@zytor.com> - 2015-12-30 18:40 +0100

#1299377 — [PATCH 1/2] irqchip: zevio: use irq_data_get_chip_type

FromGeliang Tang <geliangtang@163.com>
Date2015-12-30 15:20 +0100
Subject[PATCH 1/2] irqchip: zevio: use irq_data_get_chip_type
Message-ID<qLpLz-7Id-5@gated-at.bofh.it>
Use irq_data_get_chip_type() instead of container_of().

Signed-off-by: Geliang Tang <geliangtang@163.com>
---
 drivers/irqchip/irq-zevio.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/irqchip/irq-zevio.c b/drivers/irqchip/irq-zevio.c
index 4c48fa8..cb9d8ec 100644
--- a/drivers/irqchip/irq-zevio.c
+++ b/drivers/irqchip/irq-zevio.c
@@ -43,8 +43,7 @@ static void __iomem *zevio_irq_io;
 static void zevio_irq_ack(struct irq_data *irqd)
 {
 	struct irq_chip_generic *gc = irq_data_get_irq_chip_data(irqd);
-	struct irq_chip_regs *regs =
-		&container_of(irqd->chip, struct irq_chip_type, chip)->regs;
+	struct irq_chip_regs *regs = &irq_data_get_chip_type(irqd)->regs;
 
 	readl(gc->reg_base + regs->ack);
 }
-- 
2.5.0


--
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/

[toc] | [next] | [standalone]


#1299378 — [PATCH 2/2] gpio: davinci: use irq_data_get_chip_type

FromGeliang Tang <geliangtang@163.com>
Date2015-12-30 15:20 +0100
Subject[PATCH 2/2] gpio: davinci: use irq_data_get_chip_type
Message-ID<qLpLA-7Id-11@gated-at.bofh.it>
In reply to#1299377
Use irq_data_get_chip_type() instead of container_of().

Signed-off-by: Geliang Tang <geliangtang@163.com>
---
 drivers/gpio/gpio-davinci.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/gpio/gpio-davinci.c b/drivers/gpio/gpio-davinci.c
index 65ebaef..aaa1a249 100644
--- a/drivers/gpio/gpio-davinci.c
+++ b/drivers/gpio/gpio-davinci.c
@@ -435,8 +435,7 @@ static struct irq_chip *davinci_gpio_get_irq_chip(unsigned int irq)
 {
 	static struct irq_chip_type gpio_unbanked;
 
-	gpio_unbanked = *container_of(irq_get_chip(irq),
-				      struct irq_chip_type, chip);
+	gpio_unbanked = *irq_data_get_chip_type(irq_get_irq_data(irq));
 
 	return &gpio_unbanked.chip;
 };
-- 
2.5.0


--
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/

[toc] | [prev] | [next] | [standalone]


#1299435 — [tip:irq/core] irqchip/zevio: Use irq_data_get_chip_type() helper

Fromtip-bot for Geliang Tang <tipbot@zytor.com>
Date2015-12-30 18:40 +0100
Subject[tip:irq/core] irqchip/zevio: Use irq_data_get_chip_type() helper
Message-ID<qLsT8-18S-9@gated-at.bofh.it>
In reply to#1299377
Commit-ID:  1fd9a71076ccbcf731cf02408122600a6f2b5d17
Gitweb:     http://git.kernel.org/tip/1fd9a71076ccbcf731cf02408122600a6f2b5d17
Author:     Geliang Tang <geliangtang@163.com>
AuthorDate: Wed, 30 Dec 2015 22:16:37 +0800
Committer:  Thomas Gleixner <tglx@linutronix.de>
CommitDate: Wed, 30 Dec 2015 18:29:02 +0100

irqchip/zevio: Use irq_data_get_chip_type() helper

Use irq_data_get_chip_type() instead of container_of().

Signed-off-by: Geliang Tang <geliangtang@163.com>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Link: http://lkml.kernel.org/r/4cc3a3a7a74c7a1894892a85aa7eabbd1534fe96.1451484758.git.geliangtang@163.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
 drivers/irqchip/irq-zevio.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/irqchip/irq-zevio.c b/drivers/irqchip/irq-zevio.c
index 4c48fa8..cb9d8ec 100644
--- a/drivers/irqchip/irq-zevio.c
+++ b/drivers/irqchip/irq-zevio.c
@@ -43,8 +43,7 @@ static void __iomem *zevio_irq_io;
 static void zevio_irq_ack(struct irq_data *irqd)
 {
 	struct irq_chip_generic *gc = irq_data_get_irq_chip_data(irqd);
-	struct irq_chip_regs *regs =
-		&container_of(irqd->chip, struct irq_chip_type, chip)->regs;
+	struct irq_chip_regs *regs = &irq_data_get_chip_type(irqd)->regs;
 
 	readl(gc->reg_base + regs->ack);
 }
--
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/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web