Skip to contentSkip to conversation

mfd: tps65910-irq: Add devicetree init support

PATCH In review Rhyland Klein 2 participants 2 messages May 14, 2012 – May 18, 2012 Multifunction devices (MFD)

lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 mfd: tps65910-irq: Add devicetree init support

This change changes the tps65910-irq code to use irqdomain, and support initialization from devicetree. This assumes that the irq_base in the platform data is -1 if devicetree is used.

---
v4: moved driver to use irq domains
v3: no change from v2.
v2: split off irq specific changes based on previous review comments

 drivers/mfd/Kconfig          |    1 +
 drivers/mfd/tps65910-irq.c   |   96 +++++++++++++++++++++++++++---------------
 include/linux/mfd/tps65910.h |    1 +
 3 files changed, 64 insertions(+), 34 deletions(-)
drivers/mfd/Kconfig +1 -0
index 9846424..dcb51e4 100644
@@ -191,6 +191,7 @@ config MFD_TPS65910
 	select MFD_CORE
 	select GPIO_TPS65910
 	select REGMAP_I2C
+	select IRQ_DOMAIN
 	help
 	  if you say yes here you get support for the TPS65910 series of
 	  Power Management chips.
drivers/mfd/tps65910-irq.c +62 -34

147 lines not on this page · raw message

include/linux/mfd/tps65910.h +1 -0
index 56903ad..18a7e0f 100644
@@ -840,6 +840,7 @@ struct tps65910 {
 	int irq_base;
 	int irq_num;
 	u32 irq_mask;
+	struct irq_domain *domain;
 };
 
 struct tps65910_platform_data {
Signature · 1 line
1.7.0.4
#1 lore raw

Hi Rhyland,

Quoted 5 lines · Rhyland Klein

This change changes the tps65910-irq code to use irqdomain, and support initialization from devicetree. This assumes that the irq_base in the platform data is -1 if devicetree is used.

Patch applied, thanks.

Cheers,
Samuel.

Signature · 2 lines
Intel Open Source Technology Centre
http://oss.intel.com/