diff options
| author | Peter Ujfalusi <[email protected]> | 2011-10-12 11:57:54 +0300 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2011-10-12 11:48:46 +0100 |
| commit | 31b402e3c9eb839a00530511dcf7de47bbf723f6 (patch) | |
| tree | 8f5a00e067ef4d647727425b7e40c501286f7284 /include/linux | |
| parent | 1e036f65329901a2432c92132b785654944743d9 (diff) | |
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 <[email protected]>
Acked-by: Samuel Ortiz <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'include/linux')
| -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; |