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.h18
1 files changed, 12 insertions, 6 deletions
diff --git a/drivers/mfd/mc13xxx.h b/drivers/mfd/mc13xxx.h
index bbba06feea06..460ec5c7b18c 100644
--- a/drivers/mfd/mc13xxx.h
+++ b/drivers/mfd/mc13xxx.h
@@ -13,19 +13,25 @@
13#include <linux/regmap.h> 13#include <linux/regmap.h>
14#include <linux/mfd/mc13xxx.h> 14#include <linux/mfd/mc13xxx.h>
15 15
16enum mc13xxx_id { 16#define MC13XXX_NUMREGS 0x3f
17 MC13XXX_ID_MC13783, 17
18 MC13XXX_ID_MC13892, 18struct mc13xxx;
19 MC13XXX_ID_INVALID, 19
20struct mc13xxx_variant {
21 const char *name;
22 void (*print_revision)(struct mc13xxx *mc13xxx, u32 revision);
20}; 23};
21 24
22#define MC13XXX_NUMREGS 0x3f 25extern struct mc13xxx_variant
26 mc13xxx_variant_mc13783,
27 mc13xxx_variant_mc13892,
28 mc13xxx_variant_mc34708;
23 29
24struct mc13xxx { 30struct mc13xxx {
25 struct regmap *regmap; 31 struct regmap *regmap;
26 32
27 struct device *dev; 33 struct device *dev;
28 enum mc13xxx_id ictype; 34 const struct mc13xxx_variant *variant;
29 35
30 struct mutex lock; 36 struct mutex lock;
31 int irq; 37 int irq;