* [PATCH 3/3] plat-versatile: internalize FPGA IRQ data
@ 2012-04-11 22:44 Linus Walleij
0 siblings, 0 replies; only message in thread
From: Linus Walleij @ 2012-04-11 22:44 UTC (permalink / raw)
To: linux-arm-kernel
This moves the FPGA IRQ data container into the implementation
and out of the public interface, it is only used internally now.
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
arch/arm/plat-versatile/fpga-irq.c | 14 ++++++++++++++
arch/arm/plat-versatile/include/plat/fpga-irq.h | 7 -------
2 files changed, 14 insertions(+), 7 deletions(-)
diff --git a/arch/arm/plat-versatile/fpga-irq.c b/arch/arm/plat-versatile/fpga-irq.c
index b7e06ea..dc57dcd 100644
--- a/arch/arm/plat-versatile/fpga-irq.c
+++ b/arch/arm/plat-versatile/fpga-irq.c
@@ -15,6 +15,20 @@
#define IRQ_ENABLE_SET 0x08
#define IRQ_ENABLE_CLEAR 0x0c
+/**
+ * struct fpga_irq_data - irq data container for the FPGA IRQ controller
+ * @base: memory offset in virtual memory
+ * @irq_start: first IRQ number handled by this instance
+ * @chip: chip container for this instance
+ * @domain: domain for this instance
+ */
+struct fpga_irq_data {
+ void __iomem *base;
+ unsigned int irq_start;
+ struct irq_chip chip;
+ struct irq_domain *domain;
+};
+
/* we cannot allocate memory when VICs are initially registered */
static struct fpga_irq_data fpga_irq_devices[CONFIG_PLAT_VERSATILE_FPGA_IRQ_NR];
static int fpga_irq_id;
diff --git a/arch/arm/plat-versatile/include/plat/fpga-irq.h b/arch/arm/plat-versatile/include/plat/fpga-irq.h
index 7f8009a..91bcfb6 100644
--- a/arch/arm/plat-versatile/include/plat/fpga-irq.h
+++ b/arch/arm/plat-versatile/include/plat/fpga-irq.h
@@ -1,13 +1,6 @@
#ifndef PLAT_FPGA_IRQ_H
#define PLAT_FPGA_IRQ_H
-struct fpga_irq_data {
- void __iomem *base;
- unsigned int irq_start;
- struct irq_chip chip;
- struct irq_domain *domain;
-};
-
struct device_node;
struct pt_regs;
--
1.7.7.6
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-04-11 22:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-11 22:44 [PATCH 3/3] plat-versatile: internalize FPGA IRQ data Linus Walleij
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).