linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] irqchip: zevio: use irq_data_get_chip_type
@ 2015-12-30 14:16 Geliang Tang
  2015-12-30 14:16 ` [PATCH 2/2] gpio: davinci: " Geliang Tang
  2015-12-30 17:33 ` [tip:irq/core] irqchip/zevio: Use irq_data_get_chip_type() helper tip-bot for Geliang Tang
  0 siblings, 2 replies; 7+ messages in thread
From: Geliang Tang @ 2015-12-30 14:16 UTC (permalink / raw)
  To: Thomas Gleixner, Jason Cooper, Marc Zyngier; +Cc: Geliang Tang, linux-kernel

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



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-01-28 14:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-30 14:16 [PATCH 1/2] irqchip: zevio: use irq_data_get_chip_type Geliang Tang
2015-12-30 14:16 ` [PATCH 2/2] gpio: davinci: " Geliang Tang
2016-01-27 13:56   ` Linus Walleij
2016-01-27 16:35     ` Grygorii Strashko
2016-01-27 19:03       ` santosh shilimkar
2016-01-28 14:29   ` Linus Walleij
2015-12-30 17:33 ` [tip:irq/core] irqchip/zevio: Use irq_data_get_chip_type() helper tip-bot for Geliang Tang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).