mfd: Initialise WM8994 register cache after reading chip ID registers
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 3 Dec 2011 17:10:32 +0000 (17:10 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 12 Dec 2011 16:11:13 +0000 (00:11 +0800)
commit346978980a781a5b434c48531cf29cadf5b83999
treec2f80a16e77aaca02dff57fc47bb61bce97f00df
parentc3f1386171a100d27d9fb978f474a6a330888af5
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>
drivers/mfd/wm8994-core.c
drivers/mfd/wm8994-regmap.c
drivers/mfd/wm8994.h