regulator: palma: set ldo8 voltage before disabling tracking mode.
authorLaxman Dewangan <ldewangan@nvidia.com>
Mon, 1 Oct 2012 09:44:51 +0000 (14:44 +0530)
committerSimone Willett <swillett@nvidia.com>
Tue, 23 Oct 2012 22:34:40 +0000 (15:34 -0700)
commit80591c51bcc3ef3a5c76b78d64d19519e57bb437
treef1c6b5762567312c38624c38efc23d159c31ff54
parent7b80f7c81b8258634c68b0873436d685e430ff2c
regulator: palma: set ldo8 voltage before disabling tracking mode.

When LDO8 is in tracking mode and want to disable tracking mode
then ldo8 voltage should be set before disabling tracking
mode as in tacking mode, the voltage selection value is double
than the non-tracking mode and it can spike high voltage
on the rail.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/140595
(cherry picked from commit cd0e02af8288bebccab92dcda27d6953b2a58955)

Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Change-Id: I322acccfe22e2e1af856e2fa06154c75b094091f
Reviewed-on: http://git-master/r/146388
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
drivers/regulator/palmas-regulator.c