]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit45553a58357eef12f220d016b0382d08dcf75e4e
treec2f80a16e77aaca02dff57fc47bb61bce97f00df
parent5caf7e9fcb4b996244041bfb1b2a796541507dbc
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