aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mfd/max8998-private.h
diff options
context:
space:
mode:
authorTomasz Figa <t.figa@samsung.com>2013-06-24 14:39:52 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2013-06-30 23:29:44 +0200
commit443c6ae253e96db9a5800a28d7c61131e81c2dee (patch)
treec9df532a7f81a8799fe52f6845504b275803e58e /include/linux/mfd/max8998-private.h
parentregulator: palmas: Add TPS659038 support (diff)
downloadlinux-dev-443c6ae253e96db9a5800a28d7c61131e81c2dee.tar.xz
linux-dev-443c6ae253e96db9a5800a28d7c61131e81c2dee.zip
mfd: max8998: Add irq domain support
This patch adds irq domain support for max8998 interrupts. To keep both non-DT and DT worlds happy, simple domain is used, which is linear when no explicit IRQ base is specified and legacy, with static mapping, otherwise. Signed-off-by: Tomasz Figa <t.figa@samsung.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/linux/mfd/max8998-private.h')
-rw-r--r--include/linux/mfd/max8998-private.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/mfd/max8998-private.h b/include/linux/mfd/max8998-private.h
index effa5d3b96ae..bfb48b6fcc74 100644
--- a/include/linux/mfd/max8998-private.h
+++ b/include/linux/mfd/max8998-private.h
@@ -132,6 +132,8 @@ enum {
#define MAX8998_ENRAMP (1 << 4)
+struct irq_domain;
+
/**
* struct max8998_dev - max8998 master device for sub-drivers
* @dev: master device of the chip (can be used to access platform data)
@@ -153,7 +155,8 @@ struct max8998_dev {
struct mutex iolock;
struct mutex irqlock;
- int irq_base;
+ unsigned int irq_base;
+ struct irq_domain *irq_domain;
int irq;
int ono;
u8 irq_masks_cur[MAX8998_NUM_IRQ_REGS];