mfd: Keep a cache of WM8350 volatile values
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 30 Apr 2009 13:48:36 +0000 (14:48 +0100)
committerSamuel Ortiz <samuel@sortiz.org>
Tue, 19 May 2009 20:22:28 +0000 (22:22 +0200)
commitb126d113484886d900179b4ae55ea7fabe15f936
tree9499c97c8394a117e99910fd4d165d03150bcb7f
parent279e677faa775ad16e75c32e1bf4a37f8158bc61
mfd: Keep a cache of WM8350 volatile values

Due to the way that the WM8350 audio driver handles CODEC_ENA many of
the WM8350 audio registers are marked as volatile when they aren't
actually so. Allow the audio driver to see a cache of these values for
inspection during interrupt context.

To do this we need to stop satisfying any bits from volatile registers
from cache - there's no real benefit from doing so anyway, we did the
read already.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/wm8350-core.c