mfd: Use regmap for tps65910 register access.
authorLaxman Dewangan <ldewangan@nvidia.com>
Tue, 21 Feb 2012 12:51:34 +0000 (17:51 +0530)
committerSimone Willett <swillett@nvidia.com>
Wed, 29 Feb 2012 05:06:56 +0000 (21:06 -0800)
commit8f1f7fad4abcf4daa5af0e0517a031c7240cfc68
treeb71fcc4e6bbec85ac47778c6cffca87216b47a27
parenteb4ffeb3a543b504cd9e9309d4bb1547e506f70d
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>
cherry picked from mainline commit
0e7018c7b161dc5544f7af862dc59e0b9a0dbd20

Change-Id: Ie0bc1fd32f1c7f7b80004b30ec9ba615d4c29360
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/86349
drivers/mfd/Kconfig
drivers/mfd/tps65910.c
include/linux/mfd/tps65910.h