]> 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)
commit640ae57fada279c3d7549c8b77fca35f3b314a69
treec2f80a16e77aaca02dff57fc47bb61bce97f00df
parentaa643e1ba0d0fd0d4d13b6055fcdb46b426e15b8
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