]> git.baikalelectronics.ru Git - kernel.git/commit
MFD: twl6040: Cache the vibra control registers
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Wed, 12 Oct 2011 08:57:54 +0000 (11:57 +0300)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 12 Oct 2011 10:48:46 +0000 (11:48 +0100)
commitc8b6cf74b855b854727e7cab3cf95e9b7a4c7156
tree8f5a00e067ef4d647727425b7e40c501286f7284
parent8019c0f32359cd653952cd99ebac3cfa9db815c4
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>
drivers/mfd/twl6040-core.c
include/linux/mfd/twl6040.h