summaryrefslogtreecommitdiff
path: root/drivers/mfd/wm8994-regmap.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-12-03 21:10:32 +0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-12-12 20:11:13 +0400
commit346978980a781a5b434c48531cf29cadf5b83999 (patch)
treec2f80a16e77aaca02dff57fc47bb61bce97f00df /drivers/mfd/wm8994-regmap.c
parentc3f1386171a100d27d9fb978f474a6a330888af5 (diff)
downloadlinux-346978980a781a5b434c48531cf29cadf5b83999.tar.xz
mfd: Initialise WM8994 register cache after reading chip ID registers
The different devices handled by the WM8994 can be distinguished using their ID registers so we don't need to rely on the user having registered the device correctly. Instead do the initial regmap setup with a minimal configuration only supporting physical I/O and then configure the cache once we have identified the device. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/wm8994-regmap.c')
-rw-r--r--drivers/mfd/wm8994-regmap.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/mfd/wm8994-regmap.c b/drivers/mfd/wm8994-regmap.c
index d98a70e26076..03594c257ef2 100644
--- a/drivers/mfd/wm8994-regmap.c
+++ b/drivers/mfd/wm8994-regmap.c
@@ -1216,3 +1216,8 @@ struct regmap_config wm8958_regmap_config = {
.volatile_reg = wm8958_volatile_register,
.readable_reg = wm8958_readable_register,
};
+
+struct regmap_config wm8994_base_regmap_config = {
+ .reg_bits = 16,
+ .val_bits = 16,
+};