mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: tip-bot for Geliang Tang <tipbot@zytor.com>
To: linux-tip-commits@vger.kernel.org
Cc: mingo@kernel.org, hpa@zytor.com, geliangtang@163.com,
	jason@lakedaemon.net, marc.zyngier@arm.com, tglx@linutronix.de,
	linux-kernel@vger.kernel.org
Subject: [tip:irq/core] irqchip/zevio: Use irq_data_get_chip_type() helper
Date: Wed, 30 Dec 2015 09:33:46 -0800	[thread overview]
Message-ID: <tip-1fd9a71076ccbcf731cf02408122600a6f2b5d17@git.kernel.org> (raw)
In-Reply-To: <4cc3a3a7a74c7a1894892a85aa7eabbd1534fe96.1451484758.git.geliangtang@163.com>

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);
 }

      parent reply	other threads:[~2015-12-30 17:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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-bot for Geliang Tang [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=tip-1fd9a71076ccbcf731cf02408122600a6f2b5d17@git.kernel.org \
    --to=tipbot@zytor.com \
    --cc=geliangtang@163.com \
    --cc=hpa@zytor.com \
    --cc=jason@lakedaemon.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tip-commits@vger.kernel.org \
    --cc=marc.zyngier@arm.com \
    --cc=mingo@kernel.org \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome