]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb03d7fce75196739b80397e478dbad75f285c304
tree777acac138bc643b7eebe9d3b0203ba331e36022
parent156b3a971af39b7bc984b2f0442b1a5fcf3b33f5
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