mfd: Cache tps65910 register when we need it
authorLaxman Dewangan <ldewangan@nvidia.com>
Wed, 9 May 2012 13:10:54 +0000 (18:10 +0530)
committerSimone Willett <swillett@nvidia.com>
Mon, 4 Jun 2012 21:21:10 +0000 (14:21 -0700)
commit32622a1c656323bc3c5db5177dadd773de9f1978
tree4b92546e64a506f162b46addfc809ad61936c07d
parentf5f14b545e0ba9bf74c3803793632080e14df43e
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>
(cherry picked from commit 3bf6bf9be51a0195c6b1604454fdd28ed1cc1770)

Change-Id: I151f52436162a328b8d683fc06beba0587d6bda3
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/105924
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
drivers/mfd/tps65910.c