mfd: Use regmap for tps65910 register access.
authorLaxman Dewangan <ldewangan@nvidia.com>
Tue, 21 Feb 2012 12:51:34 +0000 (18:21 +0530)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 6 Mar 2012 17:46:50 +0000 (18:46 +0100)
commitdc9913a050f1898c6a77f4f5606bc194d530aafd
tree777acac138bc643b7eebe9d3b0203ba331e36022
parent2853378b6eafd8b9e2f0e39ab599c93ce518b04d
mfd: Use regmap for tps65910 register access.

Using regmap apis for accessing the device registers and
using RBTREE caching mechanims for caching registers.

Enabling caching of the registers which is used for voltage
controls. By doing this, the modify_bits operation is faster as
it does not involve the i2c register read from device, just read
from cache. This results faster set voltage operation.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/Kconfig
drivers/mfd/tps65910.c
include/linux/mfd/tps65910.h