diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2011-10-12 11:57:54 +0300 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-10-12 11:48:46 +0100 |
commit | 31b402e3c9eb839a00530511dcf7de47bbf723f6 (patch) | |
tree | 8f5a00e067ef4d647727425b7e40c501286f7284 /include/linux/mfd/twl6040.h | |
parent | 1e036f65329901a2432c92132b785654944743d9 (diff) | |
download | lwn-31b402e3c9eb839a00530511dcf7de47bbf723f6.tar.gz lwn-31b402e3c9eb839a00530511dcf7de47bbf723f6.zip |
MFD: twl6040: Cache the vibra control registers
The vibra control register will be used from the ASoC codec driver as well.
In order to avoid latency issues caused by I2C read access, cache the two
control register within the core driver, so we do not need to reach out
to the chip to read it back.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: Samuel Ortiz <samuel.ortiz@intel.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/linux/mfd/twl6040.h')
-rw-r--r-- | include/linux/mfd/twl6040.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mfd/twl6040.h b/include/linux/mfd/twl6040.h index e6c755db4560..2f8585a4c74b 100644 --- a/include/linux/mfd/twl6040.h +++ b/include/linux/mfd/twl6040.h @@ -184,6 +184,7 @@ struct twl6040 { int audpwron; int power_count; int rev; + u8 vibra_ctrl_cache[2]; int pll; unsigned int sysclk; |