aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd/mc13xxx.h
diff options
context:
space:
mode:
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 ae7f1659f5d1..33677d1dcf66 100644
--- a/drivers/mfd/mc13xxx.h
+++ b/drivers/mfd/mc13xxx.h
@@ -13,7 +13,9 @@
13#include <linux/regmap.h> 13#include <linux/regmap.h>
14#include <linux/mfd/mc13xxx.h> 14#include <linux/mfd/mc13xxx.h>
15 15
16#define MC13XXX_NUMREGS 0x3f 16#define MC13XXX_NUMREGS 0x3f
17#define MC13XXX_IRQ_REG_CNT 2
18#define MC13XXX_IRQ_PER_REG 24
17 19
18struct mc13xxx; 20struct mc13xxx;
19 21
@@ -33,13 +35,14 @@ struct mc13xxx {
33 struct device *dev; 35 struct device *dev;
34 const struct mc13xxx_variant *variant; 36 const struct mc13xxx_variant *variant;
35 37
38 struct regmap_irq irqs[MC13XXX_IRQ_PER_REG * MC13XXX_IRQ_REG_CNT];
39 struct regmap_irq_chip irq_chip;
40 struct regmap_irq_chip_data *irq_data;
41
36 struct mutex lock; 42 struct mutex lock;
37 int irq; 43 int irq;
38 int flags; 44 int flags;
39 45
40 irq_handler_t irqhandler[MC13XXX_NUM_IRQ];
41 void *irqdata[MC13XXX_NUM_IRQ];
42
43 int adcflags; 46 int adcflags;
44}; 47};
45 48