summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/mc13xxx.h
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2014-06-18 21:05:40 +0400
committerLee Jones <lee.jones@linaro.org>2014-07-09 14:58:10 +0100
commit10f9edaeaa30468194e1dcd0e47e59b012f4cf8b (patch)
tree21cc8d8c703b749e4a116a052817530de6309fee /drivers/mfd/mc13xxx.h
parent215cd99a1ec70395cd5a20cd9b75d2d7af6bbe7e (diff)
downloadop-kernel-dev-10f9edaeaa30468194e1dcd0e47e59b012f4cf8b.zip
op-kernel-dev-10f9edaeaa30468194e1dcd0e47e59b012f4cf8b.tar.gz
mfd: mc13xxx: Use regmap irq framework for interrupts
This patch convert mc13xxx MFD driver to use regmap irq framework for interrupt registration. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/mc13xxx.h')
-rw-r--r--drivers/mfd/mc13xxx.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/drivers/mfd/mc13xxx.h b/drivers/mfd/mc13xxx.h
index ae7f165..33677d1d 100644
--- a/drivers/mfd/mc13xxx.h
+++ b/drivers/mfd/mc13xxx.h
@@ -13,7 +13,9 @@
#include <linux/regmap.h>
#include <linux/mfd/mc13xxx.h>
-#define MC13XXX_NUMREGS 0x3f
+#define MC13XXX_NUMREGS 0x3f
+#define MC13XXX_IRQ_REG_CNT 2
+#define MC13XXX_IRQ_PER_REG 24
struct mc13xxx;
@@ -33,13 +35,14 @@ struct mc13xxx {
struct device *dev;
const struct mc13xxx_variant *variant;
+ struct regmap_irq irqs[MC13XXX_IRQ_PER_REG * MC13XXX_IRQ_REG_CNT];
+ struct regmap_irq_chip irq_chip;
+ struct regmap_irq_chip_data *irq_data;
+
struct mutex lock;
int irq;
int flags;
- irq_handler_t irqhandler[MC13XXX_NUM_IRQ];
- void *irqdata[MC13XXX_NUM_IRQ];
-
int adcflags;
};
OpenPOWER on IntegriCloud