summaryrefslogtreecommitdiff
path: root/include/linux/mfd/max8997-private.h
diff options
context:
space:
mode:
authorThomas Abraham <thomas.abraham@linaro.org>2012-07-02 04:02:55 +0400
committerSamuel Ortiz <sameo@linux.intel.com>2012-07-09 02:16:13 +0400
commitb41511f713ccaef666e450fae8cb18909897fe4e (patch)
tree078c2a625964f7769a1fecc4fa5f6cf24dc2df68 /include/linux/mfd/max8997-private.h
parentbad76991d7847b7877ae797cc79745d82ffd9120 (diff)
downloadlinux-b41511f713ccaef666e450fae8cb18909897fe4e.tar.xz
mfd: Add irq domain support for max8997 interrupts
Add irq domain support for max8997 interrupts. The reverse mapping method used is linear mapping since the sub-drivers of max8997 such as regulator and charger drivers can use the max8997 irq_domain to get the linux irq number for max8997 interrupts. All uses of irq_base in platform data and max8997 driver private data are removed. Reviwed-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: MyungJoo Ham <myungjoo.ham@samsung.com> Acked-by: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/linux/mfd/max8997-private.h')
-rw-r--r--include/linux/mfd/max8997-private.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/mfd/max8997-private.h b/include/linux/mfd/max8997-private.h
index 3f4deb62d6b0..830152cfae33 100644
--- a/include/linux/mfd/max8997-private.h
+++ b/include/linux/mfd/max8997-private.h
@@ -23,6 +23,8 @@
#define __LINUX_MFD_MAX8997_PRIV_H
#include <linux/i2c.h>
+#include <linux/export.h>
+#include <linux/irqdomain.h>
#define MAX8997_REG_INVALID (0xff)
@@ -325,7 +327,7 @@ struct max8997_dev {
int irq;
int ono;
- int irq_base;
+ struct irq_domain *irq_domain;
struct mutex irqlock;
int irq_masks_cur[MAX8997_IRQ_GROUP_NR];
int irq_masks_cache[MAX8997_IRQ_GROUP_NR];