mfd: tps65910-irq: Add devicetree init support
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.
Signed-off-by Rhyland Klein <[email protected]>
---
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
@@ -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
@@ -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
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_basein the platform data is -1 if devicetree is used.Signed-off-by Rhyland Klein <[email protected]>
Patch applied, thanks.
Cheers,
Samuel.
Signature · 2 lines
Intel Open Source Technology Centre http://oss.intel.com/