Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1299377
| From | Geliang Tang <geliangtang@163.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 1/2] irqchip: zevio: use irq_data_get_chip_type |
| Date | 2015-12-30 15:20 +0100 |
| Message-ID | <qLpLz-7Id-5@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
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/
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[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
csiph-web