mfd: Cache tps65910 register when we need it
authorLaxman Dewangan <ldewangan@nvidia.com>
Wed, 9 May 2012 13:10:54 +0000 (18:40 +0530)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 20 May 2012 15:26:59 +0000 (17:26 +0200)
commit3bf6bf9be51a0195c6b1604454fdd28ed1cc1770
tree71c64ee8d215f1b60aac1e6cc908df176f1a7a44
parent9577e8c3fbc145b5d2a12d2fbc6a50031573c77d
mfd: Cache tps65910 register when we need it

During regmap initialization, we do not provide the default value and
hence in place of caching register during regmap_init(), cache it
when actually we need it i.e. after reading of that register.

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/tps65910.c