aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mfd
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2012-02-21 07:51:34 -0500
committerSamuel Ortiz <sameo@linux.intel.com>2012-03-06 12:46:50 -0500
commitdc9913a050f1898c6a77f4f5606bc194d530aafd (patch)
tree777acac138bc643b7eebe9d3b0203ba331e36022 /include/linux/mfd
parent2853378b6eafd8b9e2f0e39ab599c93ce518b04d (diff)
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>
Diffstat (limited to 'include/linux/mfd')
-rw-r--r--include/linux/mfd/tps65910.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mfd/tps65910.h b/include/linux/mfd/tps65910.h
index d0cb12eba40..b9aceb5c122 100644
--- a/include/linux/mfd/tps65910.h
+++ b/include/linux/mfd/tps65910.h
@@ -789,6 +789,7 @@ struct tps65910_board {
789struct tps65910 { 789struct tps65910 {
790 struct device *dev; 790 struct device *dev;
791 struct i2c_client *i2c_client; 791 struct i2c_client *i2c_client;
792 struct regmap *regmap;
792 struct mutex io_mutex; 793 struct mutex io_mutex;
793 unsigned int id; 794 unsigned int id;
794 int (*read)(struct tps65910 *tps65910, u8 reg, int size, void *dest); 795 int (*read)(struct tps65910 *tps65910, u8 reg, int size, void *dest);